PATCH kernel/umid.c
umid.c 2004-01-26 23:11:41.000000000 +1030 renamed from umid.c.orig 2004-01-26 23:10:38.000000000 +1030 +1 -1
@@ -205,7 +205,7 @@ printf("Failed to malloc uml_dir - error = %d\n", errno); uml_dir = name; - return(0); + return(1); } sprintf(uml_dir, "%s/", name); }
(and the sf list seems to have nearly completely stopped over the last 36 hours.)
Signature · 13 lines
Dan Shearer [email protected] ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
In addition, umid.c seems to be a bit inconsistent as to what rates an exit(1) and what just does return(1).
Quoted 11 lines · Dan Shearer
umid.c 2004-01-26 23:11:41.000000000 +1030 renamed from umid.c.orig 2004-01-26 23:10:38.000000000 +1030 +1
-1@@ -205,7 +205,7 @@ printf("Failed to malloc uml_dir - error = %d\n", errno); uml_dir = name; - return(0); + return(1); } sprintf(uml_dir, "%s/", name); }
Signature · 13 lines
Dan Shearer [email protected] ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
umid.c 2004-01-26 23:11:41.000000000 +1030 line 208
Quoted 2 lines · [email protected] said:
umid.c 2004-01-26 23:11:41.000000000 +1030 renamed from umid.c.orig 2004-01-26 23:10:38.000000000 +1030 +1
-1- return(0); + return(1);
I did the return(0) on purpose because, even though initcall procedures are declared as returning an int, do_initcalls ignores it.
So, I added a comment there instead of changing the return value.
Quoted 2 lines
In addition,
umid.cseems to be a bit inconsistent as to what rates an exit(1) and what just does return(1).
Stuff that's done early, before the kernel is actually running, rates an exit(1). Everything else gets a return(1). I don't always follow this rule, but I did a quick check of umid.c and it looks OK.
Jeff
Jeff
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel