]> git.karo-electronics.de Git - linux-beck.git/commit
staging:rts_pstor: fix thread synchronization flow
authorwwang <wei_wang@realsil.com.cn>
Wed, 3 Aug 2011 08:00:25 +0000 (16:00 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 19:05:34 +0000 (12:05 -0700)
commitf704648281831fbb8a4ca1acbe18cb84bc0267c8
tree72ebfc90791c35e417cec393b225ce68dae5b2d1
parentf8d73aa362cec89e3379bdcdae54cc46e0a6b34d
staging:rts_pstor: fix thread synchronization flow

Using different completion variables to synchronize different kernel threads

This patch fix a bug that may cause memory leak when driver
disconnected. This is not a very urgent bug. Because with the default
setting, driver disconnectting routine won't be called except when Linux
is shut down. But if the option auto_delink_en is set, a small number of
memory would leak out after memory card unplugged.

Signed-off-by: wwang <wei_wang@realsil.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rts_pstor/rtsx.c
drivers/staging/rts_pstor/rtsx.h