Commit db80000f authored by Jens Axboe's avatar Jens Axboe

[PATCH] Check remailing length in ide-cd.c correctly

It could be negative.
parent 272c1188
......@@ -1749,8 +1749,8 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
/*
* pad, if necessary
*/
if (len) {
while (len) {
if (len > 0) {
while (len > 0) {
int pad = 0;
xferfunc(drive, &pad, sizeof(pad));
......
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