patch-2.1.71 linux/drivers/block/floppy.c

Next file: linux/drivers/block/ht6560b.c
Previous file: linux/drivers/block/dtc2278.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.70/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -3975,6 +3975,7 @@
 	fdc_state[0].address = FDC1;
 	if (fdc_state[0].address == -1) {
 		unregister_blkdev(MAJOR_NR,"fd");
+		del_timer(&fd_timeout);
 		return -ENODEV;
 	}
 #if N_FDC > 1
@@ -3983,6 +3984,7 @@
 
 	if (floppy_grab_irq_and_dma()){
 		unregister_blkdev(MAJOR_NR,"fd");
+		del_timer(&fd_timeout);
 		return -EBUSY;
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov