]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: hisi_sas: Adjust priority of registering and exiting debugfs for security
authorYihang Li <liyihang9@huawei.com>
Tue, 8 Oct 2024 02:18:10 +0000 (10:18 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Oct 2024 02:33:34 +0000 (22:33 -0400)
commite6702e3919328b24757872cbf7f02c51894624d7
treeaf2f737faf93bb2e4014beaa077386958c7db69f
parent9852d85ec9d492ebef56dc5f229416c925758edc
scsi: hisi_sas: Adjust priority of registering and exiting debugfs for security

To be safe, we should register debugfs at the last stage of driver
initialization and then unregister debugfs at the first stage of driver
uninstallation.

Signed-off-by: Yihang Li <liyihang9@huawei.com>
Link: https://lore.kernel.org/r/20241008021822.2617339-2-liyihang9@huawei.com
Reviewed-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c