Alexey Dobriyan 881adb8535 proc: always do ->release
Current two-stage scheme of removing PDE emphasizes one bug in proc:

		open
				rmmod
				remove_proc_entry
		close

->release won't be called because ->proc_fops were cleared.  In simple
cases it's small memory leak.

For every ->open, ->release has to be done.  List of openers is introduced
which is traversed at remove_proc_entry() if neeeded.

Discussions with Al long ago (sigh).

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-25 10:53:44 -07:00
..
2008-07-25 10:53:44 -07:00
2005-04-16 15:20:36 -07:00
2008-07-25 10:53:44 -07:00
2008-07-25 10:53:44 -07:00
2007-10-17 08:42:48 -07:00
2008-04-29 08:06:17 -07:00
2008-07-24 10:47:17 -07:00
2008-07-22 14:19:19 -07:00
2008-07-20 17:12:34 -07:00
2008-07-22 09:59:41 -07:00