summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_netlink.c
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-03-26 16:32:57 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-03-28 17:59:29 +0200
commit29421198c3a860092e27c2ad8499dfe603398817 (patch)
tree71294f8a20e10d1ca420d72452d4cfb9a37c3799 /net/bridge/br_netlink.c
parentb301f2538759933cf9ff1f7c4f968da72e3f0757 (diff)
downloadlinux-29421198c3a860092e27c2ad8499dfe603398817.tar.bz2
netfilter: ipv4: fix NULL dereference
Commit fa50d974d104 ("ipv4: Namespaceify ip_default_ttl sysctl knob") use sock_net(skb->sk) to get the net namespace, but we can't assume that sk_buff->sk is always exist, so when it is NULL, oops will happen. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Reviewed-by: Nikolay Borisov <kernel@kyup.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/bridge/br_netlink.c')
0 files changed, 0 insertions, 0 deletions