[PATCH 2/2] UML - Fix ubd_add error reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

Index: linux-2.6.21-mm/arch/um/drivers/ubd_kern.c
===================================================================
--- linux-2.6.21-mm.orig/arch/um/drivers/ubd_kern.c	2007-05-22 11:55:48.000000000 -0400
+++ linux-2.6.21-mm/arch/um/drivers/ubd_kern.c	2007-05-22 12:03:48.000000000 -0400
@@ -766,7 +766,7 @@ static int ubd_add(int n, char **error_o
 		make_ide_entries(ubd_gendisk[n]->disk_name);
 
 out:
-	return 0;
+	return err;
 
 out_cleanup:
 	blk_cleanup_queue(ubd_dev->queue);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux