Skip to contentSkip to conversation

mptfusion: delete rphy info in mptsas_del_end_device()

PATCH New Xiaotian Feng 1 participant 1 message Feb 20, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mptfusion: delete rphy info in mptsas_del_end_device()

Otherwise, we might get wrong rphy attributes through sysfs when a end device is not responding.

---
 drivers/message/fusion/mptsas.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/message/fusion/mptsas.c +2 -0
index fa43c39..4845d18 100644
@@ -1572,6 +1572,8 @@ mptsas_del_end_device(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info)
 	     port->port_identifier, (unsigned long long)sas_address);
 	sas_port_delete(port);
 	mptsas_set_port(ioc, phy_info, NULL);
+	sas_rphy_delete(rphy);
+	mptsas_set_rphy(ioc, phy_info, NULL);
 	mptsas_port_delete(ioc, phy_info->port_details);
 }
 
Signature · 1 line
1.7.9.5