diff options
| author | Xiang Chen <[email protected]> | 2019-11-12 17:30:58 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-11-12 22:21:34 -0500 |
| commit | 7c0ecd40c31246a2d0de81879966436ff07505a4 (patch) | |
| tree | 96308ce3bbff6904b232d2c67782e22e8b4876fc /include/linux/timerqueue.h | |
| parent | 547fde8b5a1923050f388caae4f76613b5a620e0 (diff) | |
scsi: hisi_sas: Relocate call to hisi_sas_debugfs_exit()
Currently we call function hisi_sas_debugfs_exit() to remove debugfs_dir
before freeing interrupt irqs and destroying workqueue in the driver remove
path.
If a 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.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xiang Chen <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions