summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorNickolai Zeldovich <nickolai@csail.mit.edu>2013-01-05 14:19:51 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-01-05 14:26:51 -0500
commitecf0eb9edbb607d74f74b73c14af8b43f3729528 (patch)
tree37f71bb68c6a1756f9d8fad5b9798ec81fed49d8 /fs/nfs
parent360e1a534901592b289ba8768fc71b6e6ad49070 (diff)
downloadop-kernel-dev-ecf0eb9edbb607d74f74b73c14af8b43f3729528.zip
op-kernel-dev-ecf0eb9edbb607d74f74b73c14af8b43f3729528.tar.gz
nfs: avoid dereferencing null pointer in initiate_bulk_draining
Fix an inverted null pointer check in initiate_bulk_draining(). Signed-off-by: Nickolai Zeldovich <nickolai@csail.mit.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@vger.kernel.org [>= 3.7]
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/callback_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
index c89b26b..264d1aa 100644
--- a/fs/nfs/callback_proc.c
+++ b/fs/nfs/callback_proc.c
@@ -206,7 +206,7 @@ static u32 initiate_bulk_draining(struct nfs_client *clp,
list_for_each_entry(lo, &server->layouts, plh_layouts) {
ino = igrab(lo->plh_inode);
- if (ino)
+ if (!ino)
continue;
spin_lock(&ino->i_lock);
/* Is this layout in the process of being freed? */
OpenPOWER on IntegriCloud