diff options
author | Pavel Shilovsky <pshilovsky@etersoft.ru> | 2012-08-29 21:13:38 +0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-09-19 15:04:44 +0100 |
commit | 06335856d22eeef4862c539920137e348a9e620d (patch) | |
tree | 327b37f1416f8bc5d983ba1dbec1964c778d8d3f /fs/cifs | |
parent | 9600be784136611dcab44490998f8d7420ac7a79 (diff) |
CIFS: Fix error handling in cifs_push_mandatory_locks
commit e2f2886a824ff0a56da1eaa13019fde86aa89fa6 upstream.
Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 0bb785f6608..51574d499db 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -882,7 +882,7 @@ cifs_push_mandatory_locks(struct cifsFileInfo *cfile) if (!buf) { mutex_unlock(&cinode->lock_mutex); FreeXid(xid); - return rc; + return -ENOMEM; } for (i = 0; i < 2; i++) { |