linux-stable-rt/arch/um
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
..
drivers [PATCH] uml: fix mcast network driver error handling 2005-11-13 18:14:14 -08:00
include [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
kernel [PATCH] uml: remove bogus WARN_ON, triggerable harmlessly on a page fault race 2005-11-13 18:14:14 -08:00
os-Linux [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
scripts [PATCH] uml: maintain own LDT entries 2005-11-07 07:53:31 -08:00
sys-i386 [PATCH] uml: maintain own LDT entries 2005-11-07 07:53:31 -08:00
sys-ia64
sys-ppc
sys-x86_64 [PATCH] uml: maintain own LDT entries 2005-11-07 07:53:31 -08:00
Kconfig [PATCH] uml: fixups for "reuse i386 cpu-specific tuning" 2005-11-13 18:14:14 -08:00
Kconfig.char
Kconfig.debug
Kconfig.i386 [PATCH] uml: fixups for "reuse i386 cpu-specific tuning" 2005-11-13 18:14:14 -08:00
Kconfig.net
Kconfig.scsi
Kconfig.x86_64 [PATCH] uml: fix "reuse i386 cpu optimizations" 2005-10-30 17:37:16 -08:00
Makefile [PATCH] uml: big memory fixes 2005-11-07 07:53:31 -08:00
Makefile-i386 [PATCH] uml: fixups for "reuse i386 cpu-specific tuning" 2005-11-13 18:14:14 -08:00
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas [PATCH] uml makefiles sanitized 2005-09-29 08:46:26 -07:00
Makefile-tt
Makefile-x86_64 [PATCH] uml makefiles sanitized 2005-09-29 08:46:26 -07:00
config.release
defconfig