CIFS: Fix error handling in cifs_push_mandatory_locks

Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:
Pavel Shilovsky 2012-08-29 21:13:38 +04:00 committed by Steve French
parent 5b716ac728
commit e2f2886a82
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {