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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 0410e1bf109a..15c2039059c9 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -1299,8 +1299,9 @@ static inline int
1299sd_do_mode_sense(struct scsi_request *SRpnt, int dbd, int modepage, 1299sd_do_mode_sense(struct scsi_request *SRpnt, int dbd, int modepage,
1300 unsigned char *buffer, int len, struct scsi_mode_data *data) 1300 unsigned char *buffer, int len, struct scsi_mode_data *data)
1301{ 1301{
1302 return __scsi_mode_sense(SRpnt, dbd, modepage, buffer, len, 1302 return scsi_mode_sense(SRpnt->sr_device, dbd, modepage, buffer, len,
1303 SD_TIMEOUT, SD_MAX_RETRIES, data); 1303 SD_TIMEOUT, SD_MAX_RETRIES, data,
1304 SRpnt->sr_sense_buffer);
1304} 1305}
1305 1306
1306/* 1307/*