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)
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>

No differences found