summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@etersoft.ru>2012-08-29 21:13:38 +0400
committerSteve French <smfrench@gmail.com>2012-09-06 12:42:31 -0500
commite2f2886a824ff0a56da1eaa13019fde86aa89fa6 (patch)
treed8c90b1fb27b963bd5d71d77db3ced22476e852a /fs/cifs
parent5b716ac728bcc01b1f2a7ed6e437196602237c27 (diff)
downloadlinux-stable-e2f2886a824ff0a56da1eaa13019fde86aa89fa6.tar.gz
linux-stable-e2f2886a824ff0a56da1eaa13019fde86aa89fa6.tar.bz2
linux-stable-e2f2886a824ff0a56da1eaa13019fde86aa89fa6.zip
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>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 9154192b0683..71e9ad9f5961 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -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++) {