[CIFS] Fix oops on failed cifs mount (in kthread_stop)
authorSteve French <sfrench@us.ibm.com>
Wed, 23 May 2007 14:45:36 +0000 (14:45 +0000)
committerSteve French <sfrench@us.ibm.com>
Wed, 23 May 2007 14:45:36 +0000 (14:45 +0000)
If the cifs demultiplex thread wakes up and exits
(zeroing server->tsk) before kthread_stop is called, the
cifs_mount code could pass a null pointer to kthread_stop

Thanks to akpm, Dave Young and Shaggy for suggesting
earlier versions of this patch.

CC: akpm@linux-foundatior.org
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

No differences found