diff options
| author | Jens Axboe <axboe@suse.de> | 2003-09-22 22:58:33 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-22 22:58:33 -0700 |
| commit | 9f15e60949c480f5f199ed6d844d2c64c3ee757a (patch) | |
| tree | 8a3d54fc090e791f90c57ac422b917a8b5b34fd7 | |
| parent | 1c2c2a8f7cfa549f372ae4ec659c6baa846535c5 (diff) | |
[PATCH] ide-cd cgc command bug
From Szombathelyi György
This fixes a problem where the residual data count isn't being set
correctly.
| -rw-r--r-- | drivers/ide/ide-cd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 04e177e8a0db..dfc01ebe4678 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -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; } |
