lkml.org 
[lkml]   [2003]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] PnP Fixes for 2.6.0-test5
# --------------------------------------------
# 03/09/21 ambx1@neo.rr.com 1.1360
# [PNPBIOS] return proper error codes on init failure
# --------------------------------------------
#
diff -Nru a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
--- a/drivers/pnp/pnpbios/core.c Sun Sep 21 19:45:42 2003
+++ b/drivers/pnp/pnpbios/core.c Sun Sep 21 19:45:42 2003
@@ -484,15 +484,17 @@
pnpbios_calls_init(pnp_bios_install);

/* read the node info */
- if (pnp_bios_dev_node_info(&node_info)) {
+ ret = pnp_bios_dev_node_info(&node_info);
+ if (ret) {
printk(KERN_ERR "PnPBIOS: Unable to get node info. Aborting.\n");
- return -EIO;
+ return ret;
}

/* register with the pnp layer */
- if (pnp_register_protocol(&pnpbios_protocol)) {
+ ret = pnp_register_protocol(&pnpbios_protocol);
+ if (ret) {
printk(KERN_ERR "PnPBIOS: Unable to register driver. Aborting.\n");
- return -EIO;
+ return ret;
}

/* start the proc interface */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.053 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site