提交 c30541f9 编写于 作者: C chenxiang 提交者: Xie XiuQi

scsi: hisi_sas: delete PHYs' timer when rmmod or probe failed

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

When rmmod hisi_sas driver or probe failed, need to delete PHYs' timer.
Signed-off-by: NXiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: NJohn Garry <john.garry@huawei.com>

Feature or Bugfix:Bugfix
Signed-off-by: Nchenxiang (M) <chenxiang66@hisilicon.com>
Reviewed-by: Nhuangdaode <huangdaode@hisilicon.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 5e82176d
...@@ -2468,6 +2468,14 @@ EXPORT_SYMBOL_GPL(hisi_sas_alloc); ...@@ -2468,6 +2468,14 @@ EXPORT_SYMBOL_GPL(hisi_sas_alloc);
void hisi_sas_free(struct hisi_hba *hisi_hba) void hisi_sas_free(struct hisi_hba *hisi_hba)
{ {
int i;
for (i = 0; i < hisi_hba->n_phy; i++) {
struct hisi_sas_phy *phy = &hisi_hba->phy[i];
del_timer_sync(&phy->timer);
}
if (hisi_hba->wq) if (hisi_hba->wq)
destroy_workqueue(hisi_hba->wq); destroy_workqueue(hisi_hba->wq);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册