All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "bgmac: Fix reversed test of build_skb() return value." has been added to the 4.4-stable tree
@ 2017-07-03  9:52 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-07-03  9:52 UTC (permalink / raw)
  To: davem, amit.pundir, gregkh; +Cc: stable, stable-commits


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@vger.kernel.org> know about it.


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

From: David S. Miller <davem@davemloft.net>

commit 750afbf8ee9c6a1c74a1fe5fc9852146b1d72687 upstream.

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

---
 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@davemloft.net 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-03  9:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-03  9:52 Patch "bgmac: Fix reversed test of build_skb() return value." has been added to the 4.4-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.