Patch "hv: util: checking the wrong variable" has been added to the 4.2-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
hv: util: checking the wrong variable
to the 4.2-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:
hv-util-checking-the-wrong-variable.patch
and it can be found in the queue-4.2 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
9dd6a06430c94299651d74b9ed5ca8396ab8ff1fMon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Sat, 1 Aug 2015 16:08:17 -0700
Subject: hv: util: checking the wrong variable
From: Dan Carpenter <[email protected]>
commit 9dd6a06430c94299651d74b9ed5ca8396ab8ff1f upstream.
We don't catch this allocation failure because there is a typo and we check the wrong variable.
--- drivers/hv/hv_utils_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/hv_utils_transport.c +1 -1
@@ -186,7 +186,7 @@ int hvutil_transport_send(struct hvutil_return -EINVAL ; }else if (hvt->mode ==HVUTIL_TRANSPORT_NETLINK ) { cn_msg =kzalloc (sizeof (*cn_msg) + len,GFP_ATOMIC ); -if (!msg) +if (!cn_msg)return -ENOMEM ; cn_msg->id.idx = hvt->cn_id.idx; cn_msg->id.val = hvt->cn_id.val;
Patches currently in stable-queue which might be from [email protected] are
queue-4.2/hv-util-checking-the-wrong-variable.patch queue-4.2/ath10k-fix-dma_mapping_error-handling.patch queue-4.2/hpsa-fix-an-sprintf-overflow-in-the-reset-handler.patch queue-4.2/extcon-fix-signedness-bugs-about-break-error-handling.patch