diff options
author | Gaosheng Cui <[email protected]> | 2022-11-11 15:04:33 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-11-14 10:53:29 +0000 |
commit | 991aef4ee4f6eb999924f429b943441a32835c8f (patch) | |
tree | f9f1bdf22b0c711df141a13df4a4b86d6c20bdd1 /tools/perf/scripts/python | |
parent | 8fbb53c8bfd8c56ecf1f78dc821778b58f505503 (diff) |
bnxt_en: Remove debugfs when pci_register_driver failed
When pci_register_driver failed, we need to remove debugfs,
which will caused a resource leak, fix it.
Resource leak logs as follows:
[ 52.184456] debugfs: Directory 'bnxt_en' with parent '/' already present!
Fixes: cabfb09d87bd ("bnxt_en: add debugfs support for DIM")
Signed-off-by: Gaosheng Cui <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Reviewed-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions