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
..
2023-05-05 19:12:01 -07:00
2023-05-17 21:27:30 -07:00
2023-02-21 18:24:12 -08:00
2023-06-06 21:07:43 -07:00
2023-06-06 20:59:08 -07:00
2023-03-16 17:34:40 -07:00
2023-06-05 15:15:57 +01:00
2023-04-13 16:43:38 -07:00
2023-05-16 20:52:35 -07:00