Commit 0b83e76d authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] misc_register-017

From:  Michael Still <mikal@stillhq.com>
parent b50367c9
......@@ -930,7 +930,7 @@ static int __init i2o_config_init(void)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment