mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
ide-cd: kill whole failed request in ide_cd_do_request()
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>
This commit is contained in:
@@ -1083,7 +1083,7 @@ out_end:
|
||||
rq->errors = -EIO;
|
||||
}
|
||||
|
||||
nsectors = rq->hard_cur_sectors;
|
||||
nsectors = rq->hard_nr_sectors;
|
||||
|
||||
if (nsectors == 0)
|
||||
nsectors = 1;
|
||||
|
||||
Reference in New Issue
Block a user