Commit 9f15e609 authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] ide-cd cgc command bug

From Szombathelyi György

This fixes a problem where the residual data count isn't being set
correctly.
parent 1c2c2a8f
......@@ -2498,7 +2498,7 @@ static int ide_cdrom_packet(struct cdrom_device_info *cdi,
req.sense = cgc->sense;
cgc->stat = cdrom_queue_packet_command(drive, &req);
if (!cgc->stat)
cgc->buflen = req.data_len;
cgc->buflen -= req.data_len;
return cgc->stat;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment