]> git.baikalelectronics.ru Git - kernel.git/commit
net: rtnetlink: fix module reference count leak issue in rtnetlink_rcv_msg
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 15 Aug 2022 02:46:29 +0000 (10:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 16 Aug 2022 02:58:30 +0000 (19:58 -0700)
commit25a9fbeeb74a0c0eb6219642a8e5580a8510601b
treec85cc206a3114fd1fcfb9e6e5db7457c24a73e6d
parent89d2682afbf9a256820c0d46565ad6ba5cef0e62
net: rtnetlink: fix module reference count leak issue in rtnetlink_rcv_msg

When bulk delete command is received in the rtnetlink_rcv_msg function,
if bulk delete is not supported, module_put is not called to release
the reference counting. As a result, module reference count is leaked.

Fixes: fd961262a741 ("net: rtnetlink: add bulk delete support flag")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/r/20220815024629.240367-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/rtnetlink.c