summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorFlorian Westphal2017-07-23 19:54:47 +0200
committerDavid S. Miller2017-07-25 01:27:08 +0200
commita28b1b90de8322ecc45d58f1c08da12197dad17f (patch)
tree49bc180709a0af274935ef2216ed0041fe04e579 /drivers/of
parentliquidio: fix implicit irq include causing build failures (diff)
downloadkernel-qcow2-linux-a28b1b90de8322ecc45d58f1c08da12197dad17f.tar.gz
kernel-qcow2-linux-a28b1b90de8322ecc45d58f1c08da12197dad17f.tar.xz
kernel-qcow2-linux-a28b1b90de8322ecc45d58f1c08da12197dad17f.zip
skbuff: re-add check for NULL skb->head in kfree_skb path
A null check is needed after all. netlink skbs can have skb->head be backed by vmalloc. The netlink destructor vfree()s head, then sets it to NULL. We then panic in skb_release_data with a NULL dereference. Re-add such a test. Alternative would be to switch to kvfree to free skb->head memory and remove the special handling in netlink destructor. Reported-by: kernel test robot <fengguang.wu@intel.com> Fixes: 06dc75ab06943 ("net: Revert "net: add function to allocate sk_buff head without data area") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions