Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

NFS: check for req==NULL in nfs_try_to_update_request cleanup

parent adae0fe0
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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: