patch-2.0.17 linux/drivers/block/floppy.c
Next file: linux/drivers/cdrom/sbpcd.c
Previous file: linux/drivers/block/cmd640.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Sep 2 10:55:26 1996
- Orig file:
v2.0.16/linux/drivers/block/floppy.c
- Orig date:
Sun Sep 1 09:15:32 1996
diff -u --recursive --new-file v2.0.16/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -4067,12 +4067,16 @@
if (fd_request_irq()) {
DPRINT("Unable to grab IRQ%d for the floppy driver\n",
FLOPPY_IRQ);
+ MOD_DEC_USE_COUNT;
+ usage_count--;
return -1;
}
if (fd_request_dma()) {
DPRINT("Unable to grab DMA%d for the floppy driver\n",
FLOPPY_DMA);
fd_free_irq();
+ MOD_DEC_USE_COUNT;
+ usage_count--;
return -1;
}
for (fdc = 0; fdc < N_FDC; fdc++)
@@ -4098,7 +4102,6 @@
return;
}
INT_ON;
- MOD_DEC_USE_COUNT;
fd_disable_dma();
fd_free_dma();
fd_disable_irq();
@@ -4131,6 +4134,7 @@
if (floppy_tq.sync)
printk("task queue still active\n");
#endif
+ MOD_DEC_USE_COUNT;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov