patch-2.4.19 linux-2.4.19/drivers/net/wan/sdla.c
Next file: linux-2.4.19/drivers/net/wan/sdla_chdlc.c
Previous file: linux-2.4.19/drivers/net/wan/munich32x.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/net/wan/sdla.c
- Orig date:
Thu Sep 13 16:04:43 2001
diff -urN linux-2.4.18/drivers/net/wan/sdla.c linux-2.4.19/drivers/net/wan/sdla.c
@@ -1348,8 +1348,10 @@
return(-EINVAL);
dev->base_addr = map->base_addr;
- request_region(dev->base_addr, SDLA_IO_EXTENTS, dev->name);
-
+ if (!request_region(dev->base_addr, SDLA_IO_EXTENTS, dev->name)){
+ printk(KERN_WARNING "SDLA: io-port 0x%04lx in use \n", dev->base_addr);
+ return(-EINVAL);
+ }
/* test for card types, S502A, S502E, S507, S508 */
/* these tests shut down the card completely, so clear the state */
flp->type = SDLA_UNKNOWN;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)