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 <den@openvz.org>
Cc: David Miller <davem@davemloft.net>
Cc: Patrick McHardy <kaber@trash.net>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Robert Olsson <robert.olsson@its.uu.se>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Reported-by: Roland Kletzing <devzero@web.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-24 09:56:11 -07:00
..
2008-05-14 19:23:27 -05:00
2008-05-01 08:04:01 -07:00
2008-05-22 14:20:21 +00:00
2008-04-29 08:06:04 -07:00
2008-05-19 15:37:27 -05:00
2008-04-29 08:06:00 -07:00
2008-05-24 09:56:07 -07:00
2008-04-30 08:29:52 -07:00
2008-05-21 16:55:58 -07:00
2008-04-29 08:06:18 -07:00
2008-05-24 09:56:08 -07:00
2008-05-21 16:55:59 -07:00
2008-04-30 08:29:51 -07:00
2008-04-30 08:29:52 -07:00
2008-04-29 08:06:17 -07:00
2008-05-07 18:35:03 +02:00
2008-04-30 08:29:47 -07:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:50 -04:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:16 -04:00
2008-05-06 13:13:37 -07:00
2008-04-29 08:06:00 -07:00
2008-04-30 13:38:47 +02:00
2008-04-29 08:06:01 -07:00
2008-05-01 13:08:16 -04:00
2008-05-08 10:46:56 -07:00
2008-04-30 08:29:51 -07:00
2008-05-01 13:08:16 -04:00
2008-05-01 13:08:50 -04:00
2008-05-08 14:06:19 +02:00
2008-04-29 08:06:00 -07:00
2008-05-01 13:08:50 -04:00