diff options
author | Hangyu Hua <hbh25y@gmail.com> | 2023-06-07 10:23:01 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-14 11:13:03 +0200 |
commit | a242c6a92ce672baa93b7c4ab12b6ed56996b73a (patch) | |
tree | 92a4f937e9d113aa7268eff6ce721a3258fc86fc /lib/cpu_rmap.c | |
parent | d7c69f7b838302fe61a98d0fef8a69da2c64a5d0 (diff) |
net: sched: fix possible refcount leak in tc_chain_tmplt_add()
[ Upstream commit 44f8baaf230c655c249467ca415b570deca8df77 ]
try_module_get will be called in tcf_proto_lookup_ops. So module_put needs
to be called to drop the refcount if ops don't implement the required
function.
Fixes: 9f407f1768d3 ("net: sched: introduce chain templates")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/cpu_rmap.c')
0 files changed, 0 insertions, 0 deletions