aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r--drivers/scsi/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index f52b74cf8d1e..69b0a4a7a15f 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -779,7 +779,7 @@ static int sd_setup_discard_cmnd(struct scsi_cmnd *cmd)
779 * discarded on disk. This allows us to report completion on the full 779 * discarded on disk. This allows us to report completion on the full
780 * amount of blocks described by the request. 780 * amount of blocks described by the request.
781 */ 781 */
782 blk_add_request_payload(rq, page, len); 782 blk_add_request_payload(rq, page, 0, len);
783 ret = scsi_init_io(cmd); 783 ret = scsi_init_io(cmd);
784 rq->__data_len = nr_bytes; 784 rq->__data_len = nr_bytes;
785 785