patch-pre2.0.14-final2.0 linux/drivers/cdrom/sbpcd.c

Next file: linux/drivers/char/Config.in
Previous file: linux/arch/i386/kernel/bios32.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.14/linux/drivers/cdrom/sbpcd.c linux/drivers/cdrom/sbpcd.c
@@ -4457,8 +4457,10 @@
 	INIT_REQUEST;
 	sti();
 	
-	if ((CURRENT == NULL) || CURRENT->rq_status == RQ_INACTIVE)
-		goto err_done;
+	if ((CURRENT == NULL) || CURRENT->rq_status == RQ_INACTIVE) {
+		CLEAR_INTR;
+		return;
+	}
 	if (CURRENT -> sector == -1)
 		goto err_done;
 	if (CURRENT->cmd != READ)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this