patch-2.2.0-pre1 linux/drivers/block/ide-floppy.c

Next file: linux/drivers/block/ide-probe.c
Previous file: linux/drivers/block/ide-cd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.132/linux/drivers/block/ide-floppy.c linux/drivers/block/ide-floppy.c
@@ -633,6 +633,9 @@
 	}
 	if (error)
 		floppy->failed_pc = NULL;
+	/* Why does this happen? */
+	if (!rq)
+		return;
 	if (!IDEFLOPPY_RQ_CMD (rq->cmd)) {
 		ide_end_request (uptodate, hwgroup);
 		return;

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