scsi: hisi_sas: Put function hisi_sas_debugfs_exit() after free_irqs and...
scsi: hisi_sas: Put function hisi_sas_debugfs_exit() after free_irqs and destroy workqueue when removing hisi_sas driver driver inclusion category: bugfix bugzilla: NA CVE: NA Currently we call function hisi_sas_debugfs_exit() to remove debugfs_dir before free irqs and destroy workqueue when removing hisi_sas driver. If dump is triggered before function hisi_sas_debugfs_exit() but debugfs_work may be called after it, so it may refer to already removed debugfs_dir which will cause NULL pointer dereference. To avoid it, put function hisi_sas_debugfs_exit() after free_irqs and destroy workqueue when removing hisi_sas driver. Signed-off-by: NXiang Chen <chenxiang66@hisilicon.com> Reviewed-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> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录