Patch "bgmac: Fix reversed test of build_skb() return value." has been added to the 4.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    bgmac: Fix reversed test of build_skb() 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:
     bgmac-fix-reversed-test-of-build_skb-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 <stable@xxxxxxxxxxxxxxx> know about it.


>From 750afbf8ee9c6a1c74a1fe5fc9852146b1d72687 Mon Sep 17 00:00:00 2001
From: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Fri, 15 Jan 2016 16:07:13 -0500
Subject: bgmac: Fix reversed test of build_skb() return value.

From: David S. Miller <davem@xxxxxxxxxxxxx>

commit 750afbf8ee9c6a1c74a1fe5fc9852146b1d72687 upstream.

Fixes: f1640c3ddeec ("bgmac: fix a missing check for build_skb")
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Amit Pundir <amit.pundir@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 drivers/net/ethernet/broadcom/bgmac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/ethernet/broadcom/bgmac.c
+++ b/drivers/net/ethernet/broadcom/bgmac.c
@@ -469,7 +469,7 @@ static int bgmac_dma_rx_read(struct bgma
 			len -= ETH_FCS_LEN;
 
 			skb = build_skb(buf, BGMAC_RX_ALLOC_SIZE);
-			if (unlikely(skb)) {
+			if (unlikely(!skb)) {
 				bgmac_err(bgmac, "build_skb failed\n");
 				put_page(virt_to_head_page(buf));
 				break;


Patches currently in stable-queue which might be from davem@xxxxxxxxxxxxx are

queue-4.4/net-korina-fix-napi-versus-resources-freeing.patch
queue-4.4/ipv6-fix-calling-in6_ifa_hold-incorrectly-for-dad-work.patch
queue-4.4/rtnetlink-add-ifla_group-to-ifla_policy.patch
queue-4.4/net-mvneta-fix-for_each_present_cpu-usage.patch
queue-4.4/igmp-add-a-missing-spin_lock_init.patch
queue-4.4/net-8021q-fix-one-possible-panic-caused-by-bug_on-in-free_netdev.patch
queue-4.4/decnet-dn_rtmsg-improve-input-length-sanitization-in-dnrmg_receive_user_skb.patch
queue-4.4/net-bgmac-start-transmit-queue-in-bgmac_open.patch
queue-4.4/net-zero-ifla_vf_info-in-rtnl_fill_vfinfo.patch
queue-4.4/af_unix-add-sockaddr-length-checks-before-accessing-sa_family-in-bind-and-connect-handlers.patch
queue-4.4/net-bgmac-fix-sof-bit-checking.patch
queue-4.4/fix-an-intermittent-pr_emerg-warning-about-lo-becoming-free.patch
queue-4.4/decnet-always-not-take-dst-__refcnt-when-inserting-dst-into-hash-table.patch
queue-4.4/bgmac-fix-reversed-test-of-build_skb-return-value.patch
queue-4.4/net-caif-fix-a-sleep-in-atomic-bug-in-cfpkt_create_pfx.patch
queue-4.4/net-bgmac-remove-superflous-netif_carrier_on.patch
queue-4.4/net-don-t-call-strlen-on-non-terminated-string-in-dev_set_alias.patch
queue-4.4/ipv6-release-dst-on-error-in-ip6_dst_lookup_tail.patch
queue-4.4/bgmac-fix-a-missing-check-for-build_skb.patch
queue-4.4/igmp-acquire-pmc-lock-for-ip_mc_clear_src.patch
queue-4.4/ipv6-do-not-leak-throw-route-references.patch



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]