]> git.baikalelectronics.ru Git - kernel.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)
commit38fa5cb2e20cf4c4531eb5d53b55a7e259636a9d
treece22e80c90b647f7750d754668078b16b3ecd6e0
parent9884a5ad963823f891a632d4319c77d766cf03c0
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: a6f6340e13b ("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