]> git.baikalelectronics.ru Git - kernel.git/commit
proc: detect duplicate names on registration
authorZhang Rui <rui.zhang@intel.com>
Fri, 8 Feb 2008 12:18:29 +0000 (04:18 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:23 +0000 (09:22 -0800)
commitfc8069bbaae3d3b258b8f17d4dbe3dcac58a8d4a
treed20800024bdfe15d4f6ae1e7cc63a537127afab4
parent499ab07c54dd7698ed46315828540dc47dff03f6
proc: detect duplicate names on registration

Print a warning if PDE is registered with a name which already exists in
target directory.

Bug report and a simple fix can be found here:
http://bugzilla.kernel.org/show_bug.cgi?id=8798

[\n fixlet and no undescriptive variable usage --adobriyan]
[akpm@linux-foundation.org: make printk comprehensible]
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/generic.c