Skip to content

Commit

Permalink
ide-cd: kill whole failed request in ide_cd_do_request()
Browse files Browse the repository at this point in the history
Untangling cdrom_end_request() uncovered an error in completing
failed requests in ide_cd_do_request().  Fix it.

Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 31, 2009
1 parent f63174e commit c4c69e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ static ide_startstop_t ide_cd_do_request(ide_drive_t *drive, struct request *rq,
rq->errors = -EIO;
}

nsectors = rq->hard_cur_sectors;
nsectors = rq->hard_nr_sectors;

if (nsectors == 0)
nsectors = 1;
Expand Down

0 comments on commit c4c69e2

Please sign in to comment.