From: Pavel Shilovsky Date: Wed, 29 Aug 2012 17:13:38 +0000 (+0400) Subject: CIFS: Fix error handling in cifs_push_mandatory_locks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e2f2886a824ff0a56da1eaa13019fde86aa89fa6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git CIFS: Fix error handling in cifs_push_mandatory_locks Cc: Signed-off-by: Pavel Shilovsky Signed-off-by: Steve French --- diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 9154192b068..71e9ad9f596 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++) {