Commit 5592a3f3 authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields

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: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent da5c80a9
...@@ -4294,7 +4294,6 @@ nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, ...@@ -4294,7 +4294,6 @@ nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
status = nfserr_lock_range; status = nfserr_lock_range;
goto out; goto out;
} }
BUG_ON(!filp);
locks_init_lock(&file_lock); locks_init_lock(&file_lock);
file_lock.fl_type = F_UNLCK; file_lock.fl_type = F_UNLCK;
file_lock.fl_owner = (fl_owner_t)lockowner(stp->st_stateowner); file_lock.fl_owner = (fl_owner_t)lockowner(stp->st_stateowner);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment