veth: Fix unregister_netdevice_queue for veth
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 30 Oct 2009 14:51:13 +0000 (14:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Nov 2009 07:55:09 +0000 (23:55 -0800)
commit9fdce099bb72df534daa6193318feaec177998fc
tree3fc660ba2342e4e65a9d38b56a19a67a97fd6bba
parent72c9528bab94cc052d00ce241b8e85f5d71e45f0
veth: Fix unregister_netdevice_queue for veth

I tested the recent unregister many changes and got a weird,
nasty and seemingly unrelasted kernel oops. Changing
unregister_netdevice_queue to use list_move_tail fixes
the problem for me.

ip link add type veth
rmmod veth

ls /sys/class/net/
showed one of the veth devices still present.

A subsequent ip link oopsed the box.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c