From: J. Bruce Fields Date: Thu, 19 Jan 2006 01:43:22 +0000 (-0800) Subject: [PATCH] nfsd4: fix check_for_locks X-Git-Tag: v2.6.16-rc2~299 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=796dadfd02eda1e3e6e42ecc8379d8b1c1523ddf;p=linux-2.6 [PATCH] nfsd4: fix check_for_locks Fix some bad logic. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 3510e2ca40..e13d2233ff 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -2989,9 +2989,10 @@ check_for_locks(struct file *filp, struct nfs4_stateowner *lowner) lock_kernel(); for (flpp = &inode->i_flock; *flpp != NULL; flpp = &(*flpp)->fl_next) { - if ((*flpp)->fl_owner == (fl_owner_t)lowner) + if ((*flpp)->fl_owner == (fl_owner_t)lowner) { status = 1; goto out; + } } out: unlock_kernel();