lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 7 Nov 2016 20:48:33 +0800 From: John Garry <john.garry@...wei.com> To: <martin.petersen@...cle.com>, <jejb@...ux.vnet.ibm.com> CC: <linux-scsi@...r.kernel.org>, <linuxarm@...wei.com>, <linux-kernel@...r.kernel.org>, <john.garry2@...l.dcu.ie>, Xiang Chen <chenxiang66@...ilicon.com>, John Garry <john.garry@...wei.com> Subject: [PATCH 04/11] hisi_sas: fix port form bug in hisi_sas_port_notify_formed() From: Xiang Chen <chenxiang66@...ilicon.com> When we form a wideport, we should use hardware PHY port_id instead of sas_phy->id. Signed-off-by: Xiang Chen <chenxiang66@...ilicon.com> Signed-off-by: John Garry <john.garry@...wei.com> --- drivers/scsi/hisi_sas/hisi_sas_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 9f5ccc5..486aa92 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -537,7 +537,7 @@ static void hisi_sas_port_notify_formed(struct asd_sas_phy *sas_phy) struct hisi_hba *hisi_hba = sas_ha->lldd_ha; struct hisi_sas_phy *phy = sas_phy->lldd_phy; struct asd_sas_port *sas_port = sas_phy->port; - struct hisi_sas_port *port = &hisi_hba->port[sas_phy->id]; + struct hisi_sas_port *port = &hisi_hba->port[phy->port_id]; unsigned long flags; if (!sas_port) -- 1.9.1
Powered by blists - more mailing lists