patch-2.4.21 linux-2.4.21/drivers/message/i2o/i2o_config.c
Next file: linux-2.4.21/drivers/message/i2o/i2o_core.c
Previous file: linux-2.4.21/drivers/message/fusion/mptscsih.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2003-06-13 07:51:34.000000000 -0700
- Orig file:
linux-2.4.20/drivers/message/i2o/i2o_config.c
- Orig date:
2002-08-02 17:39:44.000000000 -0700
diff -urN linux-2.4.20/drivers/message/i2o/i2o_config.c linux-2.4.21/drivers/message/i2o/i2o_config.c
@@ -428,7 +428,7 @@
put_user(len, kcmd.reslen);
if(len > reslen)
ret = -ENOBUFS;
- else if(copy_to_user(cmd->resbuf, res, len))
+ else if(copy_to_user(kcmd.resbuf, res, len))
ret = -EFAULT;
kfree(res);
@@ -918,7 +918,7 @@
printk(KERN_ERR "i2o_config: no memory for page buffer.\n");
return -ENOBUFS;
}
- if(misc_register(&i2o_miscdev)==-1)
+ if(misc_register(&i2o_miscdev) < 0)
{
printk(KERN_ERR "i2o_config: can't register device.\n");
kfree(page_buf);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)