From: Jeff Layton Date: Tue, 21 Aug 2012 12:02:31 +0000 (-0400) Subject: knfsd: remove bogus BUG_ON() call from nfsd4_locku X-Git-Tag: accepted/tizen/common/20141203.182822~3591^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5592a3f3978c57175ef817a4f773bc0d6d8949b9;p=platform%2Fkernel%2Flinux-arm64.git knfsd: remove bogus BUG_ON() call from nfsd4_locku The code checks for a NULL filp and handles it gracefully just before this BUG_ON. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index f393da8..123b471 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -4294,7 +4294,6 @@ nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, status = nfserr_lock_range; goto out; } - BUG_ON(!filp); locks_init_lock(&file_lock); file_lock.fl_type = F_UNLCK; file_lock.fl_owner = (fl_owner_t)lockowner(stp->st_stateowner);