2004-09-06 17:49:57

by Blaisorblade

[permalink] [raw]
Subject: [patch 3/3] uml-ubd-thread-start-fail-well


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

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[email protected]>
---

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;
}

_