Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1247114

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

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject Re: [PATCH v2 for-next] EDAC: use edac_debugfs_remove_recursive instead of debugfs_remove
Date 2015-10-14 21:50 +0200
Message-ID <qjAdH-8se-3@gated-at.bofh.it> (permalink)
References <qjjmy-8lg-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@huawei.com>
> Signed-off-by: Tan Xiaojun <tanxiaojun@huawei.com>

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 for-next] EDAC: use edac_debugfs_remove_recursive instead of debugfs_remove Tan Xiaojun <tanxiaojun@huawei.com> - 2015-10-14 03:50 +0200
  Re: [PATCH v2 for-next] EDAC: use edac_debugfs_remove_recursive  instead of debugfs_remove Borislav Petkov <bp@alien8.de> - 2015-10-14 21:50 +0200

csiph-web