From: Bartlomiej Zolnierkiewicz Date: Tue, 31 Mar 2009 18:15:04 +0000 (+0200) Subject: ide-cd: kill whole failed request in ide_cd_do_request() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c4c69e21b51005e24e2fc4efc8a73460a5ab7799;p=linux-beck.git 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 Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index c859eafe759b..978e1c0c1722 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -1083,7 +1083,7 @@ out_end: rq->errors = -EIO; } - nsectors = rq->hard_cur_sectors; + nsectors = rq->hard_nr_sectors; if (nsectors == 0) nsectors = 1;