]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
[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)
commit28356a1679006b110215596e057f304ef3083922
treea0fb257bab98c9fe5057462ee4f9cf84b88100a6
parentad9ddd66c6e8a79630a975ff0bb8d45a11abe630
[CIFS] Fix oops on failed cifs mount (in kthread_stop)

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>
fs/cifs/connect.c