proc: proc_get_inode should de_put when inode already initialized
authorKrzysztof Sachanowicz <analyzer1@gmail.com>
Mon, 23 Feb 2009 21:21:55 +0000 (22:21 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Feb 2009 02:25:32 +0000 (18:25 -0800)
de_get is called before every proc_get_inode, but corresponding de_put is
called only when dropping last reference to an inode. This might cause
something like
remove_proc_entry: /proc/stats busy, count=14496
to be printed to the syslog.

The fix is to call de_put in case of an already initialized inode in
proc_get_inode.

Signed-off-by: Krzysztof Sachanowicz <analyzer1@gmail.com>
Tested-by: Marcin Pilipczuk <marcin.pilipczuk@gmail.com>
Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found