diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-11-15 03:49:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-15 13:56:05 -0500 |
commit | 0da9a0c2638c8476b4a5021841912f249e3187dc (patch) | |
tree | 1ee9ef7eb473db6407f13d6bd1adf537fbc76344 /lib/sha1.c | |
parent | 80d11788fb8f4d9fcfae5ad508c7f1b65e8b28a3 (diff) | |
download | blackbird-op-linux-0da9a0c2638c8476b4a5021841912f249e3187dc.tar.gz blackbird-op-linux-0da9a0c2638c8476b4a5021841912f249e3187dc.zip |
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>
Diffstat (limited to 'lib/sha1.c')
0 files changed, 0 insertions, 0 deletions