original_kernel/arch/um/drivers
Paolo 'Blaisorblade' Giarrusso c50d2c4d66 [PATCH] uml: fix mcast network driver error handling
printk clears the host errno (I verified this in debugging and it's reasonable
enough, given that it ends via a write call on some fd, especially since
printk() goes on /dev/tty0 which is often the host stdout).  So save errno
earlier.  There's no reason to change the printk calls to use -err rather than
errno - the assignment can't clear errno.

And in the first failure path, we used to return 0 too (and this time more
clearly), which is totally wrong.  0 is a success fd, which is then registered
and gives a "registering fd twice" warning.

Finally, fix up some whitespace.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-13 18:14:14 -08:00
..
Makefile [PATCH] uml: revert block driver use of host AIO 2005-10-12 08:22:26 -07:00
chan_kern.c [PATCH] uml: replace printk with "stack-friendly" printf - to report console failure 2005-09-22 22:17:37 -07:00
chan_user.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
cow.h [PATCH] uml: cleanup whitespace for COW driver 2005-10-10 08:36:00 -07:00
cow_sys.h
cow_user.c [PATCH] uml: cleanup byte order macros for COW driver 2005-10-10 08:36:00 -07:00
daemon.h
daemon_kern.c
daemon_user.c
fd.c
harddog_kern.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
harddog_user.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
hostaudio_kern.c
line.c
mcast.h
mcast_kern.c
mcast_user.c [PATCH] uml: fix mcast network driver error handling 2005-11-13 18:14:14 -08:00
mconsole_kern.c [PATCH] uml: breakpoint an arbitrary thread 2005-09-17 11:49:59 -07:00
mconsole_user.c [PATCH] uml: revert "run mconsole "sysrq" in process context" 2005-09-30 12:41:18 -07:00
mmapper_kern.c
net_kern.c Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-11-11 09:24:26 -08:00
net_user.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
null.c
pcap_kern.c
pcap_user.c
pcap_user.h
port.h
port_kern.c [PATCH] useless linux/irq.h includes (arch/um) 2005-09-30 08:42:24 -07:00
port_user.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
pty.c [PATCH] uml: preserve errno in error paths 2005-09-17 11:50:00 -07:00
random.c [PATCH] um: fix-up schedule_timeout() usage 2005-11-07 07:53:56 -08:00
slip.h
slip_common.c
slip_common.h
slip_kern.c
slip_user.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
slirp.h
slirp_kern.c
slirp_user.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
ssl.c
ssl.h
stderr_console.c
stdio_console.c
stdio_console.h
tty.c
ubd_kern.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
ubd_user.c [PATCH] uml: revert block driver use of host AIO 2005-10-12 08:22:26 -07:00
xterm.c [PATCH] uml: separate libc-dependent helper code 2005-11-07 07:53:31 -08:00
xterm.h
xterm_kern.c