]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ide-cd cgc command bug
authorJens Axboe <axboe@suse.de>
Tue, 23 Sep 2003 05:58:33 +0000 (22:58 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 23 Sep 2003 05:58:33 +0000 (22:58 -0700)
From Szombathelyi György

This fixes a problem where the residual data count isn't being set
correctly.

drivers/ide/ide-cd.c

index 04e177e8a0db1c2f49976c8f3040ec0f734f1d78..dfc01ebe467824e048974a5c13adca19468883a3 100644 (file)
@@ -2498,7 +2498,7 @@ static int ide_cdrom_packet(struct cdrom_device_info *cdi,
        req.sense = cgc->sense;
        cgc->stat = cdrom_queue_packet_command(drive, &req);
        if (!cgc->stat)
-               cgc->buflen = req.data_len;
+               cgc->buflen -= req.data_len;
        return cgc->stat;
 }