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-03-23 08:39:08 +00:00
2022-12-09 09:18:07 +00:00
2023-03-01 08:19:09 +00:00
2023-04-19 13:04:30 +01:00
2023-02-10 16:23:03 -08:00
2023-02-13 20:09:01 -08:00
2022-12-13 15:47:48 -08:00
2023-02-16 10:39:28 +01:00
2022-12-09 09:18:07 +00:00
2022-12-09 09:18:07 +00:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2023-05-01 07:26:10 +01:00
2023-03-22 22:43:23 -07:00
2023-02-16 10:39:28 +01:00
2023-04-27 11:43:29 +02:00
2023-06-07 12:28:04 +01:00
2023-02-26 18:27:45 +00:00
2022-12-09 09:18:07 +00:00
2022-12-09 09:18:07 +00:00
2022-12-09 09:18:07 +00:00
2023-03-30 23:24:24 -07:00
2022-12-09 09:18:07 +00:00
2023-06-07 12:31:41 +01:00
2022-12-09 09:18:07 +00:00
2022-12-09 09:18:07 +00:00
2022-12-09 09:18:07 +00:00
2022-12-25 13:38:09 -08:00
2023-06-01 12:59:04 +02:00
2022-12-09 09:18:07 +00:00
2023-02-14 11:00:01 +01:00
2022-12-09 09:18:07 +00:00
2022-12-09 09:18:07 +00:00
2020-07-13 17:20:40 -07:00
2020-11-10 17:00:28 -08:00
2020-07-03 14:34:53 -07:00
2020-07-03 14:34:53 -07:00
2023-03-24 09:05:03 +00:00
2021-02-06 11:15:28 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2022-12-19 09:43:18 +00:00
2023-02-16 09:27:07 +01:00
2023-02-16 09:27:07 +01:00
2023-06-07 10:25:39 +01:00
2020-07-16 16:48:34 -07:00
2023-03-22 22:43:23 -07:00
2022-09-22 17:34:10 -07:00
2022-11-18 02:15:15 +01:00
2022-09-01 08:06:45 +02:00
2022-09-22 17:34:10 -07:00
2022-09-01 20:08:32 -07:00
2022-09-22 17:34:10 -07:00
2021-10-01 14:59:10 -07:00
2022-10-19 13:47:09 +01:00
2023-06-07 10:25:39 +01:00
2023-04-21 20:24:29 -07:00
2021-12-31 14:35:40 +00:00
2023-06-07 10:25:39 +01:00
2023-01-18 20:28:25 -08:00
2022-09-22 17:34:10 -07:00
2022-09-01 08:06:45 +02:00
2023-04-23 18:47:09 +01:00
2023-05-30 23:31:05 -07:00
2023-06-07 10:25:39 +01:00
2023-04-13 22:22:10 -07:00
2023-04-13 22:22:10 -07:00
2023-06-07 10:25:39 +01:00
2022-09-22 17:34:10 -07:00
2022-11-18 02:15:15 +01:00
2023-06-07 10:25:39 +01:00
2022-09-01 08:06:45 +02:00
2022-09-22 17:34:10 -07:00
2023-04-23 18:47:09 +01:00
2023-06-07 10:25:39 +01:00
2022-10-20 17:24:59 -07:00
2023-06-07 10:25:39 +01:00
2022-09-22 17:34:10 -07:00
2023-06-07 10:25:39 +01:00
2022-09-22 17:34:10 -07:00
2023-06-07 10:25:39 +01:00