diff options
author | Shivasharan S <shivasharan.srikanteshwara@broadcom.com> | 2019-06-29 03:02:12 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-07-12 02:59:09 +0200 |
commit | c8f96df5b8e633056b7ebf5d52a9d6fb1b156ce3 (patch) | |
tree | 44b3dd4812964503bf701aba99085ea9e92eb5a2 /drivers/scsi/hisi_sas | |
parent | scsi: lpfc: reduce stack size with CONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE (diff) | |
download | linux-c8f96df5b8e633056b7ebf5d52a9d6fb1b156ce3.tar.xz linux-c8f96df5b8e633056b7ebf5d52a9d6fb1b156ce3.zip |
scsi: megaraid_sas: Fix calculation of target ID
In megasas_get_target_prop(), driver is incorrectly calculating the target
ID for devices with channel 1 and 3. Due to this, firmware will either
fail the command (if there is no device with the target id sent from
driver) or could return the properties for a target which was not
intended. Devices could end up with the wrong queue depth due to this.
Fix target id calculation for channel 1 and 3.
Fixes: 96188a89cc6d ("scsi: megaraid_sas: NVME interface target prop added")
Cc: stable@vger.kernel.org
Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas')
0 files changed, 0 insertions, 0 deletions