[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <201403181632.s2IGWTjT003613@lab1.dls>
Date: Tue, 18 Mar 2014 12:32:29 -0400
From: David L Stevens <dlstevens@...ibm.com>
To: David Miller <davem@...emloft.net>,
Stephen Hemminger <shemminger@...tta.com>
cc: netdev@...r.kernel.org
Subject: [PATCH net] VXLAN: fix potential NULL dereference in arp_reduce()
This patch fixes a NULL pointer dereference in the event of an
skb allocation failure in arp_reduce().
Signed-Off-By: David L Stevens <dlstevens@...ibm.com>
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index eb59b14..570792c 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1315,6 +1315,9 @@ static int arp_reduce(struct net_device *dev, struct sk_buff *skb)
neigh_release(n);
+ if (reply == NULL)
+ goto out;
+
skb_reset_mac_header(reply);
__skb_pull(reply, skb_network_offset(reply));
reply->ip_summed = CHECKSUM_UNNECESSARY;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists