net: core: Prevent from dereferencing null pointer when releasing SKB
authorMyungho Jung <mhjungk@gmail.com>
Tue, 25 Apr 2017 18:58:15 +0000 (11:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Apr 2017 18:47:14 +0000 (14:47 -0400)
commit9899886d5e8ec5b343b1efe44f185a0e68dc6454
tree85732488c432e6e70b0fe73e62cfc46370162dae
parent5294b83086cc1c35b4efeca03644cf9d12282e5b
net: core: Prevent from dereferencing null pointer when releasing SKB

Added NULL check to make __dev_kfree_skb_irq consistent with kfree
family of functions.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=195289
Signed-off-by: Myungho Jung <mhjungk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c