Commit ca138f36 authored by Fred Isaman's avatar Fred Isaman Committed by Trond Myklebust

NFS: check for req==NULL in nfs_try_to_update_request cleanup

Signed-off-by: default avatarFred Isaman <iisaman@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent adae0fe0
...@@ -682,6 +682,7 @@ static struct nfs_page *nfs_try_to_update_request(struct inode *inode, ...@@ -682,6 +682,7 @@ static struct nfs_page *nfs_try_to_update_request(struct inode *inode,
req->wb_bytes = rqend - req->wb_offset; req->wb_bytes = rqend - req->wb_offset;
out_unlock: out_unlock:
spin_unlock(&inode->i_lock); spin_unlock(&inode->i_lock);
if (req)
nfs_clear_request_commit(req); nfs_clear_request_commit(req);
return req; return req;
out_flushme: out_flushme:
......
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