UML - Fix ubd_add error reporting
PATCH 2/2 UML - Fix ubd_add error reporting
ubd_add returns 0 when there could actually be an error to report.
Signed-off-by Jeff Dike <[email protected]>
--
arch/um/drivers/ubd_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/drivers/ubd_kern.c +1 -1
@@ -766,7 +766,7 @@ static int ubd_add(int n, char **error_omake_ide_entries (ubd_gendisk[n]->disk_name); out: -return 0 ; +return err; out_cleanup:blk_cleanup_queue (ubd_dev->queue);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel