--- wt5/drivers/ide/ide-cd.c Sun Apr 28 00:41:50 2002 +++ wt5-cd/drivers/ide/ide-cd.c Sun Apr 28 00:44:46 2002 @@ -657,6 +657,11 @@ request or data protect error.*/ ide_dump_status (drive, "command error", stat); cdrom_end_request(drive, 0); + } else if (sense_key == MEDIUM_ERROR) { + /* No point in re-trying a zillion times on a bad + * sector... If we got here the error is not correctable */ + ide_dump_status (drive, "media error (bad sector)", stat); + cdrom_end_request (drive, 0); } else if ((err & ~ABRT_ERR) != 0) { /* Go to the default handler for other errors. */