Commit e85337c7 authored by Dave Jones's avatar Dave Jones

[PATCH] Check request_region() in inia100

parent d1ebfb3b
......@@ -366,7 +366,11 @@ int inia100_detect(Scsi_Host_Template * tpnt)
printk("inia100: initial orchid fail!!\n");
goto out_unalloc;
}
request_region(pHCB->HCS_Base, 256, "inia100"); /* Register */
if (!request_region(pHCB->HCS_Base, 256, "inia100")) {
printk(KERN_WARNING "inia100: io port 0x%x, is busy.\n",
pHCB->HCS_Base);
return (0);
}
hreg->io_port = pHCB->HCS_Base;
hreg->n_io_port = 0xff;
......
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