diff options
author | Eric Dumazet <edumazet@google.com> | 2022-03-25 19:50:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-27 00:17:01 +0300 |
commit | 5ae6acf1d00be462d7b08b4a8748798ef595ae5a (patch) | |
tree | c4ba33377997d857c7db9be424800178fcbfdff2 /net/unix/af_unix.c | |
parent | 5c7e49be96ea24776a5b5a07c732c477294add00 (diff) | |
download | linux-5ae6acf1d00be462d7b08b4a8748798ef595ae5a.tar.xz |
net/smc: fix a memory leak in smc_sysctl_net_exit()
Recently added smc_sysctl_net_exit() forgot to free
the memory allocated from smc_sysctl_net_init()
for non initial network namespace.
Fixes: 462791bbfa35 ("net/smc: add sysctl interface for SMC")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Cc: Tony Lu <tonylu@linux.alibaba.com>
Cc: Dust Li <dust.li@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions