patch-2.4.19 linux-2.4.19/drivers/scsi/sr_ioctl.c

Next file: linux-2.4.19/drivers/scsi/sun3_NCR5380.c
Previous file: linux-2.4.19/drivers/scsi/sr.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/scsi/sr_ioctl.c linux-2.4.19/drivers/scsi/sr_ioctl.c
@@ -48,7 +48,7 @@
 	
 	if (ti->cdti_trk1 == ntracks) 
 		ti->cdti_trk1 = CDROM_LEADOUT;
-	else 
+	else if (ti->cdti_trk1 != CDROM_LEADOUT)
 		ti->cdti_trk1 ++;
 
 	trk0_te.cdte_track = ti->cdti_trk0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)