[PATCH] uml: balance list_add and list_del in the network driver
authorJeff Dike <jdike@addtoit.com>
Tue, 7 Feb 2006 20:58:42 +0000 (12:58 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 8 Feb 2006 00:12:32 +0000 (16:12 -0800)
commit14d9ead05ec925f299ae5cfe948c180c88ec842e
tree88901eee9fb3d4b332b8cf96ffd91d0f9cbe2d2f
parent1d2ddcfb1935c9c0e98c4295458b01f24e3274f9
[PATCH] uml: balance list_add and list_del in the network driver

The network driver added an interface to the "opened" list when it was
configured, not when it was brought up, and removed it when it was taken down.
 A sequence of ifconfig up, ifconfig down, ...  caused it to be removed
multiple times from the list without being added in between, resulting in a
crash.  This patch moves the add to when the interface is brought up.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/drivers/net_kern.c