diff options
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r-- | drivers/ide/ide-atapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index e4a02a05fc81..792534db8f85 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -255,7 +255,7 @@ void ide_retry_pc(ide_drive_t *drive) | |||
255 | ide_init_pc(pc); | 255 | ide_init_pc(pc); |
256 | memcpy(pc->c, sense_rq->cmd, 12); | 256 | memcpy(pc->c, sense_rq->cmd, 12); |
257 | pc->buf = bio_data(sense_rq->bio); /* pointer to mapped address */ | 257 | pc->buf = bio_data(sense_rq->bio); /* pointer to mapped address */ |
258 | pc->req_xfer = sense_rq->data_len; | 258 | pc->req_xfer = blk_rq_bytes(sense_rq); |
259 | 259 | ||
260 | if (drive->media == ide_tape) | 260 | if (drive->media == ide_tape) |
261 | set_bit(IDE_AFLAG_IGNORE_DSC, &drive->atapi_flags); | 261 | set_bit(IDE_AFLAG_IGNORE_DSC, &drive->atapi_flags); |
@@ -303,7 +303,7 @@ int ide_cd_get_xferlen(struct request *rq) | |||
303 | return 32768; | 303 | return 32768; |
304 | else if (blk_sense_request(rq) || blk_pc_request(rq) || | 304 | else if (blk_sense_request(rq) || blk_pc_request(rq) || |
305 | rq->cmd_type == REQ_TYPE_ATA_PC) | 305 | rq->cmd_type == REQ_TYPE_ATA_PC) |
306 | return rq->data_len; | 306 | return blk_rq_bytes(rq); |
307 | else | 307 | else |
308 | return 0; | 308 | return 0; |
309 | } | 309 | } |