summaryrefslogtreecommitdiffstats
path: root/drivers/powercap
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2017-05-15 15:20:48 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2017-05-16 21:23:13 -0400
commit667a7662529bf0afb1d84a32ceb0da0a875a3b6c (patch)
treef097be6baccc37a91aa9cbd26a7f8f1ca0cf5284 /drivers/powercap
parent82820f0cf19aa62e2608c2909bd44e7a68268ff5 (diff)
downloadlinux-667a7662529bf0afb1d84a32ceb0da0a875a3b6c.tar.gz
linux-667a7662529bf0afb1d84a32ceb0da0a875a3b6c.tar.bz2
linux-667a7662529bf0afb1d84a32ceb0da0a875a3b6c.zip
scsi: lpfc: Fix debugfs root inode "lpfc" not getting deleted on driver unload.
When unloading and reloading the driver, the driver fails to recreate the lpfc root inode in the debugfs tree. The driver is incorrectly removing the lpfc root inode in lpfc_debugfs_terminate in the first driver instance that unloads and then sets the lpfc_debugfs_root global parameter to NULL. When the final driver instance unloads, the debugfs calls quietly ignore the remove on a NULL pointer. The bug is that the debugfs_remove call returns void so the driver doesn't know to correctly set the global parameter to NULL. Base the debugfs_remove of the lpfc_debugfs_root parameter on lpfc_debugfs_hba_count because this parameter tracks the fnX instance tracked per driver instance. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/powercap')
0 files changed, 0 insertions, 0 deletions