]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
net: avoid NULL deref in napi_get_frags()
authorEric Dumazet <edumazet@google.com>
Thu, 19 Nov 2015 20:11:23 +0000 (12:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 21:43:14 +0000 (16:43 -0500)
commite2f9dc3bd213792ac006e83f50a5453f23b8c354
tree7c97168cccbbfbe77d52ce0c083fc3dff0d075c7
parentb3d39a8805c5109dde960204806cf540e3be12fa
net: avoid NULL deref in napi_get_frags()

napi_alloc_skb() can return NULL.
We should not crash should this happen.

Fixes: 93f93a440415 ("net: move skb_mark_napi_id() into core networking stack")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c