diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index e4c94f93de16..f77b329f6923 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -1343,6 +1343,8 @@ static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
1343 | smprep = (SmpPassthroughReply_t *)ioc->sas_mgmt.reply; | 1343 | smprep = (SmpPassthroughReply_t *)ioc->sas_mgmt.reply; |
1344 | memcpy(req->sense, smprep, sizeof(*smprep)); | 1344 | memcpy(req->sense, smprep, sizeof(*smprep)); |
1345 | req->sense_len = sizeof(*smprep); | 1345 | req->sense_len = sizeof(*smprep); |
1346 | req->data_len = 0; | ||
1347 | rsp->data_len -= smprep->ResponseDataLength; | ||
1346 | } else { | 1348 | } else { |
1347 | printk(MYIOC_s_ERR_FMT "%s: smp passthru reply failed to be returned\n", | 1349 | printk(MYIOC_s_ERR_FMT "%s: smp passthru reply failed to be returned\n", |
1348 | ioc->name, __FUNCTION__); | 1350 | ioc->name, __FUNCTION__); |