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

DORMANTno replies

From: <hidden>
Date: 2004-09-06 17:49:57
Also in: lkml

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

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <redacted>
---

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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help