Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52ef2ed0 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide-cd: add error message for DMA error to cdrom_read_intr()

parent b481b238
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1112,9 +1112,12 @@ static ide_startstop_t cdrom_read_intr (ide_drive_t *drive)
	 */
	if (dma) {
		info->dma = 0;
		if ((dma_error = HWIF(drive)->ide_dma_end(drive)))
		dma_error = HWIF(drive)->ide_dma_end(drive);
		if (dma_error) {
			printk(KERN_ERR "%s: DMA read error\n", drive->name);
			ide_dma_off(drive);
		}
	}

	if (cdrom_decode_status(drive, 0, &stat))
		return ide_stopped;