Skip to content

Commit

Permalink
CIFS: Fix error handling in cifs_push_mandatory_locks
Browse files Browse the repository at this point in the history
Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
  • Loading branch information
Pavel Shilovsky authored and Steve French committed Sep 6, 2012
1 parent 5b716ac commit e2f2886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ cifs_push_mandatory_locks(struct cifsFileInfo *cfile)
if (!buf) {
mutex_unlock(&cinode->lock_mutex);
free_xid(xid);
return rc;
return -ENOMEM;
}

for (i = 0; i < 2; i++) {
Expand Down

0 comments on commit e2f2886

Please sign in to comment.