Files
linux/fs/proc
Denis V. Lunev c4185a0e01 proc: proc_get_inode() should get module only once
Any file under /proc/net opened more than once leaked the refcounter
on the module it belongs to.

The problem is that module_get is called for each file opening while
module_put is called only when /proc inode is destroyed. So, lets put
module counter if we are dealing with already initialised inode.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=10737

Signed-off-by: Denis V. Lunev <[email protected]>
Cc: David Miller <[email protected]>
Cc: Patrick McHardy <[email protected]>
Acked-by: Pavel Emelyanov <[email protected]>
Acked-by: Robert Olsson <[email protected]>
Acked-by: Eric W. Biederman <[email protected]>
Reported-by: Roland Kletzing <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2008-05-24 09:56:11 -07:00
..
2008-05-17 03:27:27 -04:00
2005-04-16 15:20:36 -07:00
2008-04-29 08:06:18 -07:00
2007-10-17 08:42:48 -07:00
2008-04-29 08:06:17 -07:00
2008-05-24 09:56:09 -07:00
2008-04-30 08:29:47 -07:00