linux/arch/um/os-Linux/drivers
Jeff Dike f34d9d2dcb uml: network interface hotplug error handling
This fixes a number of problems associated with network interface hotplug.

The userspace initialization function can fail in some cases, but the
failure was never passed back to eth_configure, which proceeded with the
configuration.  This results in a zombie device that is present, but can't
work.  This is fixed by allowing the initialization routines to return an
error, which is checked, and the configuration aborted on failure.

eth_configure failed to check for many failures.  Even when it did check,
it didn't undo whatever initializations has already happened, so a present,
but partially initialized and non-working device could result.  It now
checks everything that can fail, and bails out, undoing whatever had been
done.

The return value of eth_configure was always ignored, so it is now just
void.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-07 12:13:00 -07:00
..
etap.h [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00
ethertap_kern.c [SK_BUFF]: Introduce skb_mac_header() 2007-04-25 22:24:41 -07:00
ethertap_user.c uml: network interface hotplug error handling 2007-05-07 12:13:00 -07:00
Makefile
tuntap_kern.c [SK_BUFF]: Introduce skb_mac_header() 2007-04-25 22:24:41 -07:00
tuntap_user.c uml: network interface hotplug error handling 2007-05-07 12:13:00 -07:00
tuntap.h [PATCH] uml: const more data 2006-09-27 08:26:15 -07:00