CIFS: Fix error handling in cifs_push_mandatory_locks
authorPavel Shilovsky <pshilovsky@etersoft.ru>
Wed, 29 Aug 2012 17:13:38 +0000 (21:13 +0400)
committerSteve French <smfrench@gmail.com>
Thu, 6 Sep 2012 17:42:31 +0000 (12:42 -0500)
Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/file.c

index 9154192b0683e368a521ddf118961e1cdd592355..71e9ad9f59610aedef820784e558e1652973a553 100644 (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++) {