diff options
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r-- | drivers/ide/ide-atapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index b12be1f17f14..66ea1e7774fd 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c | |||
@@ -253,7 +253,9 @@ void ide_retry_pc(ide_drive_t *drive) | |||
253 | /* init pc from sense_rq */ | 253 | /* init pc from sense_rq */ |
254 | ide_init_pc(pc); | 254 | ide_init_pc(pc); |
255 | memcpy(pc->c, sense_rq->cmd, 12); | 255 | memcpy(pc->c, sense_rq->cmd, 12); |
256 | pc->buf = bio_data(sense_rq->bio); /* pointer to mapped address */ | 256 | |
257 | /* pointer to mapped address */ | ||
258 | pc->buf = bio_data(sense_rq->bio); | ||
257 | pc->req_xfer = blk_rq_bytes(sense_rq); | 259 | pc->req_xfer = blk_rq_bytes(sense_rq); |
258 | 260 | ||
259 | if (drive->media == ide_tape) | 261 | if (drive->media == ide_tape) |