Tommi Rantala 0da9a0c263 sctp: fix /proc/net/sctp/ memory leak
Commit 13d782f ("sctp: Make the proc files per network namespace.")
changed the /proc/net/sctp/ struct file_operations opener functions to
use single_open_net() and seq_open_net().

Avoid leaking memory by using single_release_net() and seq_release_net()
as the release functions.

Discovered with Trinity (the syscall fuzzer).

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-11-15 13:56:05 -05:00
..
2012-08-14 23:32:16 -07:00
2012-08-14 23:32:16 -07:00
2010-08-26 14:11:48 -07:00
2012-11-15 13:56:05 -05:00
2012-08-14 23:32:16 -07:00
2012-11-01 11:55:19 -04:00
2012-08-14 23:32:16 -07:00
2012-08-14 23:32:16 -07:00