mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
d717a3ab28
A problem about idt_89hpesx create debugfs failed is triggered with the
following log given:
[ 4973.269647] debugfs: Directory 'idt_csr' with parent '/' already present!
The reason is that idt_init() returns i2c_add_driver() directly without
checking its return value, if i2c_add_driver() failed, it returns without
destroy the newly created debugfs, resulting the debugfs of idt_csr can
never be created later.
idt_init()
debugfs_create_dir() # create debugfs directory
i2c_add_driver()
driver_register()
bus_add_driver()
priv = kzalloc(...) # OOM happened
# return without destroy debugfs directory
Fix by removing debugfs when i2c_add_driver() returns error.
Fixes:
|
||
---|---|---|
.. | ||
at24.c | ||
at25.c | ||
digsy_mtc_eeprom.c | ||
ee1004.c | ||
eeprom_93cx6.c | ||
eeprom_93xx46.c | ||
eeprom.c | ||
idt_89hpesx.c | ||
Kconfig | ||
Makefile | ||
max6875.c |