mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() A problem about ionic create debugfs failed is triggered with the
following log given:
[ 415.799514] debugfs: Directory 'ionic' with parent '/' already present!
The reason is that ionic_init_module() returns ionic_bus_register_driver()
directly without checking its return value, if ionic_bus_register_driver()
failed, it returns without destroy the newly created debugfs, resulting
the debugfs of ionic can never be created later.
ionic_init_module()
ionic_debugfs_create() # create debugfs directory
ionic_bus_register_driver()
pci_register_driver()
driver_register()
bus_add_driver()
priv = kzalloc(...) # OOM happened
# return without destroy debugfs directory
Fix by removing debugfs when ionic_bus_register_driver() returns error.
Fixes:
|
||
---|---|---|
.. | ||
ionic.h | ||
ionic_bus.h | ||
ionic_bus_pci.c | ||
ionic_debugfs.c | ||
ionic_debugfs.h | ||
ionic_dev.c | ||
ionic_dev.h | ||
ionic_devlink.c | ||
ionic_devlink.h | ||
ionic_ethtool.c | ||
ionic_ethtool.h | ||
ionic_fw.c | ||
ionic_if.h | ||
ionic_lif.c | ||
ionic_lif.h | ||
ionic_main.c | ||
ionic_phc.c | ||
ionic_regs.h | ||
ionic_rx_filter.c | ||
ionic_rx_filter.h | ||
ionic_stats.c | ||
ionic_stats.h | ||
ionic_txrx.c | ||
ionic_txrx.h | ||
Makefile |