kernel-fxtec-pro1x/drivers/scsi/megaraid
Shivasharan S 3e9534fa50 scsi: megaraid_sas: Fix calculation of target ID
commit c8f96df5b8e633056b7ebf5d52a9d6fb1b156ce3 upstream.

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: 96188a89cc ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-26 09:14:19 +02:00
..
Kconfig.megaraid
Makefile
mbox_defs.h
mega_common.h
megaraid_ioctl.h
megaraid_mbox.c
megaraid_mbox.h
megaraid_mm.c
megaraid_mm.h
megaraid_sas.h
megaraid_sas_base.c
megaraid_sas_fp.c
megaraid_sas_fusion.c
megaraid_sas_fusion.h