veth: fix NULL dereference in veth_dellink()
authorEric Dumazet <edumazet@google.com>
Fri, 8 Feb 2013 20:10:49 +0000 (20:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Feb 2013 01:41:43 +0000 (20:41 -0500)
commit d0e2c55e7c940 (veth: avoid a NULL deref in veth_stats_one)
added another NULL deref in veth_dellink().

# ip link add name veth1 type veth peer name veth0
# rmmod veth

We crash because veth_dellink() is called twice, so we must
take care of NULL peer.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found