OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:14:18 +0000 (10:14 +0200)
commitb9ff317b5cd4a8f7ca13934af679e129c3f1d2ce
treee671261cc079c6e6cd9e36e2a4272fcf0a08078c
parent4e6cdc0a7decd1cc5396b7d28c3ff8d47e3ae78b
net: core: Prevent from dereferencing null pointer when releasing SKB

[ Upstream commit 9899886d5e8ec5b343b1efe44f185a0e68dc6454 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c