summaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorDavid S. Miller2012-06-12 00:52:29 +0200
committerDavid S. Miller2012-06-12 00:52:29 +0200
commit55afabaa0df0dd139c8796a71beb43d1216fbe43 (patch)
tree5f3ad3d76d9101c11d15197b40fb4f86402db3a9 /net/packet/af_packet.c
parentnetfilter: nf_ct_tcp, udp: fix compilation with sysctl disabled (diff)
downloadkernel-qcow2-linux-55afabaa0df0dd139c8796a71beb43d1216fbe43.tar.gz
kernel-qcow2-linux-55afabaa0df0dd139c8796a71beb43d1216fbe43.tar.xz
kernel-qcow2-linux-55afabaa0df0dd139c8796a71beb43d1216fbe43.zip
inet: Fix BUG triggered by __rt{,6}_get_peer().
If no peer actually gets attached (either because create is zero or the peer allocation fails) we'll trigger a BUG because we unconditionally do an rt{,6}_peer_ptr() afterwards. Fix this by guarding it with the proper check. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/af_packet.c')
0 files changed, 0 insertions, 0 deletions