[patch 3/3] uml-ubd-thread-start-fail-well

From: blaisorblade_spam
Date: Mon Sep 06 2004 - 12:52:20 EST



Correct the failure path in start_io_thread(), to return the correct error code.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@xxxxxxxx>
---

uml-linux-2.6.8.1-paolo/arch/um/drivers/ubd_user.c | 1 +
1 files changed, 1 insertion(+)

diff -puN arch/um/drivers/ubd_user.c~uml-ubd-thread-start-fail-well arch/um/drivers/ubd_user.c
--- uml-linux-2.6.8.1/arch/um/drivers/ubd_user.c~uml-ubd-thread-start-fail-well 2004-08-29 14:40:54.494927288 +0200
+++ uml-linux-2.6.8.1-paolo/arch/um/drivers/ubd_user.c 2004-08-29 14:40:54.496926984 +0200
@@ -353,6 +353,7 @@ int start_io_thread(unsigned long sp, in
NULL);
if(pid < 0){
printk("start_io_thread - clone failed : errno = %d\n", errno);
+ err = -errno;
goto out_close;
}

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/