]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: fix a memory leak in smc_sysctl_net_exit()
authorEric Dumazet <edumazet@google.com>
Fri, 25 Mar 2022 16:50:21 +0000 (09:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Mar 2022 21:17:01 +0000 (14:17 -0700)
commit1678dac135c5c3a01471e6b1b4bbcce2117c0c7f
treec4ba33377997d857c7db9be424800178fcbfdff2
parent98729d1c788722d361becc2d8edbbf9e6befb111
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: 16054743cfba ("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>
net/smc/smc_sysctl.c