]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] uml ubd driver: do not store error codes as ->fd
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Tue, 31 Oct 2006 06:07:11 +0000 (22:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 31 Oct 2006 16:07:00 +0000 (08:07 -0800)
commit0bf16bffeef65622603af22151156807323d7dc7
treea6a97156aed12ddfa01049786b5a0d716564fc94
parent84e945e399ce9710a34035ea81eaf5719aa709af
[PATCH] uml ubd driver: do not store error codes as ->fd

To simplify error handling, make sure fd is saved into ubd_dev->fd only when
we are sure it is an fd and not an error code.

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