aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-31 14:15:04 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-31 14:15:04 -0400
commitc4c69e21b51005e24e2fc4efc8a73460a5ab7799 (patch)
tree4c5fbefd0d93132422b637084391fb8279719128
parentf63174e7a7ba3afa7f53e61c59b3f1ca5d88f3fb (diff)
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>
-rw-r--r--drivers/ide/ide-cd.c2
1 files changed, 1 insertions, 1 deletions
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:
1083 rq->errors = -EIO; 1083 rq->errors = -EIO;
1084 } 1084 }
1085 1085
1086 nsectors = rq->hard_cur_sectors; 1086 nsectors = rq->hard_nr_sectors;
1087 1087
1088 if (nsectors == 0) 1088 if (nsectors == 0)
1089 nsectors = 1; 1089 nsectors = 1;