patch-2.1.51 linux/drivers/block/floppy.c
Next file: linux/drivers/block/genhd.c
Previous file: linux/drivers/block/Makefile
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sat Aug 16 09:53:08 1997
- Orig file:
v2.1.50/linux/drivers/block/floppy.c
- Orig date:
Sun Jun 29 10:51:09 1997
diff -u --recursive --new-file v2.1.50/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -3969,6 +3969,10 @@
}
fdc_state[0].address = FDC1;
+ if (fdc_state[0].address == -1) {
+ unregister_blkdev(MAJOR_NR,"fd");
+ return -ENODEV;
+ }
#if N_FDC > 1
fdc_state[1].address = FDC2;
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov