summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorMing Lin <ming.l@ssi.samsung.com>2016-03-22 00:24:44 -0700
committerJens Axboe <axboe@fb.com>2016-04-12 13:13:23 -0600
commit37e58237a16b94fcd2c2d1b7e9c6e1ca661c231b (patch)
tree0225607142a78e0f110831626c033386e3c1694c /drivers/block
parent81b76485afb54e3efeb1de5edbef761f4ad2830e (diff)
downloadlwn-37e58237a16b94fcd2c2d1b7e9c6e1ca661c231b.tar.gz
lwn-37e58237a16b94fcd2c2d1b7e9c6e1ca661c231b.zip
block: add offset in blk_add_request_payload()
We could kmalloc() the payload, so need the offset in page. Signed-off-by: Ming Lin <ming.l@ssi.samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/skd_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c
index 586f9168ffa4..9a9ec212fab8 100644
--- a/drivers/block/skd_main.c
+++ b/drivers/block/skd_main.c
@@ -562,7 +562,7 @@ skd_prep_discard_cdb(struct skd_scsi_request *scsi_req,
put_unaligned_be32(count, &buf[16]);
req = skreq->req;
- blk_add_request_payload(req, page, len);
+ blk_add_request_payload(req, page, 0, len);
}
static void skd_request_fn_not_online(struct request_queue *q);