Re: [PATCH v2 for-next] EDAC: use edac_debugfs_remove_recursive instead of debugfs_remove

From: Borislav Petkov
Date: Wed Oct 14 2015 - 15:45:14 EST


On Wed, Oct 14, 2015 at 09:49:24AM +0800, Tan Xiaojun wrote:
> debugfs_remove is used to remove a file or an empty directory from
> the debugfs filesystem, but mci->debugfs is not empty.
>
> This is not easily discovered, because debugfs_remove return nothing
> when failed. It can be test like below:
>
> 1)open EDAC config and open CONFIG_EDAC_DEBUG
> 2)insmod a edac_mc module (like i3000_edac or others in drivers/edac/)
> 3)rmmod this module
> 4)we can also see files under /sys/kernel/debug/edac/ like
> "fake_inject"
>
> Reported-by: Yun Wu (Abel) <wuyun.wu@xxxxxxxxxx>
> Signed-off-by: Tan Xiaojun <tanxiaojun@xxxxxxxxxx>

Applied,
thanks.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/