diff options
Diffstat (limited to 'drivers/block/sunvdc.c')
-rw-r--r-- | drivers/block/sunvdc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c index f59887c5ffbd..9f351bfa15ea 100644 --- a/drivers/block/sunvdc.c +++ b/drivers/block/sunvdc.c | |||
@@ -416,7 +416,7 @@ static int __send_request(struct request *req) | |||
416 | desc->slice = 0; | 416 | desc->slice = 0; |
417 | } | 417 | } |
418 | desc->status = ~0; | 418 | desc->status = ~0; |
419 | desc->offset = (req->sector << 9) / port->vdisk_block_size; | 419 | desc->offset = (blk_rq_pos(req) << 9) / port->vdisk_block_size; |
420 | desc->size = len; | 420 | desc->size = len; |
421 | desc->ncookies = err; | 421 | desc->ncookies = err; |
422 | 422 | ||