Another related fix for this is here:
commit f45a5c267da35174e22cec955093a7513dc1623d Author: Eric Dumazet <email address hidden> Date: Fri Feb 8 20:10:49 2013 +0000
veth: fix NULL dereference in veth_dellink()
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 <email address hidden> Signed-off-by: David S. Miller <email address hidden>
Another related fix for this is here:
commit f45a5c267da3517 4e22cec955093a7 513dc1623d
Author: Eric Dumazet <email address hidden>
Date: Fri Feb 8 20:10:49 2013 +0000
veth: fix NULL dereference in veth_dellink()
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 <email address hidden>
Signed-off-by: David S. Miller <email address hidden>