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