Patch "cifs: fix erroneous return value" has been added to the 4.4-stable tree
This is a note to let you know that I've just added the patch titled
cifs: fix erroneous return value
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
cifs-fix-erroneous-return-value.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
4b550af519854421dfec9f7732cdddeb057134b2Mon Sep 17 00:00:00 2001
From: Anton Protopopov <[email protected]>
Date: Wed, 10 Feb 2016 12:50:21 -0500
Subject: cifs: fix erroneous return value
From: Anton Protopopov <[email protected]>
commit 4b550af519854421dfec9f7732cdddeb057134b2 upstream.
The setup_ntlmv2_rsp() function may return positive value ENOMEM instead of -ENOMEM in case of kmalloc failure.
--- fs/cifs/cifsencrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/cifsencrypt.c +1 -1
@@ -714,7 +714,7 @@ setup_ntlmv2_rsp(struct cifs_ses *ses, c ses->auth_key.response =kmalloc (baselen + tilen,GFP_KERNEL );if (!ses->auth_key.response) { - rc =ENOMEM ; + rc = -ENOMEM ; ses->auth_key.len =0 ; goto setup_ntlmv2_rsp_ret; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/cifs-fix-erroneous-return-value.patch