]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: pktgen: fix null ptr deref in skb allocation
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 11 Jan 2016 05:38:44 +0000 (21:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 22:39:44 +0000 (17:39 -0500)
commit3de03596dfeee48bc803c1d1a6daf60a459929f3
treece22e80c90b647f7750d754668078b16b3ecd6e0
parent366f29311137ec9dc0cdd4ec675cc6fcaac104d6
net: pktgen: fix null ptr deref in skb allocation

Fix possible null pointer dereference that may occur when calling
skb_reserve() on a null skb.

Fixes: 879c7220e82 ("net: pktgen: Observe needed_headroom of the device")
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c