]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: null dereference in dev_remove()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 13 Mar 2012 17:18:48 +0000 (20:18 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 13 Mar 2012 19:33:08 +0000 (15:33 -0400)
commitc546986a37746185ccef3c2d3fb9fc98c57437b5
treee134947deaeae4e347297440a6fd6ebe7fefcc97
parentee563b062c5bc7bca5d07183b4d466a65b80cb15
NFS: null dereference in dev_remove()

In commit 21d10ac75c "NFS: replace global bl_wq with per-net one" we
made "msg" a pointer instead of a struct stored in stack memory.  But we
forgot to change the memset() here so we're still clearing stack memory
instead clearing the struct like we intended.  It will lead to a kernel
crash.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/blocklayout/blocklayoutdm.c