patch-2.4.20 linux-2.4.20/drivers/cdrom/cdu31a.c
Next file: linux-2.4.20/drivers/char/ChangeLog
Previous file: linux-2.4.20/drivers/cdrom/cdrom.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Thu Nov 28 15:53:12 2002
- Orig file:
linux-2.4.19/drivers/cdrom/cdu31a.c
- Orig date:
Thu Oct 25 13:58:35 2001
diff -urN linux-2.4.19/drivers/cdrom/cdu31a.c linux-2.4.20/drivers/cdrom/cdu31a.c
@@ -3385,7 +3385,8 @@
if (drive_found) {
int deficiency = 0;
- request_region(cdu31a_port, 4, "cdu31a");
+ if (!request_region(cdu31a_port, 4, "cdu31a"))
+ goto errout3;
if (devfs_register_blkdev(MAJOR_NR, "cdu31a", &scd_bdops)) {
printk("Unable to get major %d for CDU-31a\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)