]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide-cd: kill whole failed request in ide_cd_do_request()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 31 Mar 2009 18:15:04 +0000 (20:15 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 31 Mar 2009 18:15:04 +0000 (20:15 +0200)
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>
drivers/ide/ide-cd.c

index c859eafe759b74adb08c469d342e7c96469e4978..978e1c0c172209595929d17d7822ba78cab5570c 100644 (file)
@@ -1083,7 +1083,7 @@ out_end:
                        rq->errors = -EIO;
        }
 
-       nsectors = rq->hard_cur_sectors;
+       nsectors = rq->hard_nr_sectors;
 
        if (nsectors == 0)
                nsectors = 1;