Hangyu Hua 44f8baaf23 net: sched: fix possible refcount leak in tc_chain_tmplt_add()
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>
2023-06-07 12:31:41 +01:00
..
2022-12-13 15:47:48 -08:00
2020-07-13 17:20:40 -07:00
2023-03-24 09:05:03 +00:00
2023-02-16 09:27:07 +01:00
2023-02-16 09:27:07 +01:00