Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154573
b: refs/heads/master
c: 9c72ebe
h: refs/heads/master
i:
  154571: 775cabe
v: v3
  • Loading branch information
Borislav Petkov authored and David S. Miller committed Jun 26, 2009
1 parent d5cfa9c commit a709182
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e955245d6cf49c5ed26c7add7392ff5a6762bf4
refs/heads/master: 9c72ebef5aabf3532469d602a9d87beceea268b1
14 changes: 12 additions & 2 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,19 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
}
} else if (!blk_pc_request(rq)) {
ide_cd_request_sense_fixup(drive, cmd);
/* complain if we still have data left to transfer */

uptodate = cmd->nleft ? 0 : 1;
if (uptodate == 0)

/*
* suck out the remaining bytes from the drive in an
* attempt to complete the data xfer. (see BZ#13399)
*/
if (!(stat & ATA_ERR) && !uptodate && thislen) {
ide_pio_bytes(drive, cmd, write, thislen);
uptodate = cmd->nleft ? 0 : 1;
}

if (!uptodate)
rq->cmd_flags |= REQ_FAILED;
}
goto out_end;
Expand Down

0 comments on commit a709182

Please sign in to comment.