mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
scsi: smartpqi: fix call trace in device discovery
[ Upstream commit b969261134
]
Use sas_phy_delete rather than sas_phy_free which, according to
comments, should not be called for PHYs that have been set up
successfully.
Link: https://lore.kernel.org/r/157048748876.11757.17773443136670011786.stgit@brunhilda
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Murthy Bhat <Murthy.Bhat@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8a20fb1c9a
commit
d867f27571
1 changed files with 1 additions and 1 deletions
|
@ -45,9 +45,9 @@ static void pqi_free_sas_phy(struct pqi_sas_phy *pqi_sas_phy)
|
|||
struct sas_phy *phy = pqi_sas_phy->phy;
|
||||
|
||||
sas_port_delete_phy(pqi_sas_phy->parent_port->port, phy);
|
||||
sas_phy_free(phy);
|
||||
if (pqi_sas_phy->added_to_port)
|
||||
list_del(&pqi_sas_phy->phy_list_entry);
|
||||
sas_phy_delete(phy);
|
||||
kfree(pqi_sas_phy);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue