veth: fix a NULL deref in netif_carrier_off
authorEric Dumazet <edumazet@google.com>
Thu, 10 Jan 2013 08:32:45 +0000 (08:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jan 2013 22:11:46 +0000 (14:11 -0800)
In commit d0e2c55e7c94 (veth: avoid a NULL deref in veth_stats_one)
we now clear the peer pointers in veth_dellink()

veth_close() must therefore make sure the peer pointer is set.

Reported-by: Tom Parkin <tom.parkin@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found