knfsd: remove bogus BUG_ON() call from nfsd4_locku
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- fs/nfsd/nfs4state.c | 1 - 1 file changed, 1 deletion(-)
fs/nfsd/nfs4state.c +0 -1
@@ -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);
Signature · 1 line
1.7.11.4
Quoted 2 lines · Jeff Layton
The code checks for a NULL filp and handles it gracefully just before this
BUG_ON.
Thanks, applying for 3.6.--b.
Quoted 21 lines
Signed-off-by Jeff Layton <[email protected]>--- fs/nfsd/nfs4state.c | 1 - 1 file changed, 1 deletion(-)fs/nfsd/nfs4state.c +0
-1@@ -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);Signature · 1 line
1.7.11.4