1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microchip/vcap
Jens Emil Schulz Østergaard a3c1e45156 net: microchip: vcap: Fix use-after-free error in kunit test
This is a clear use-after-free error. We remove it, and rely on checking
the return code of vcap_del_rule.

Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/kernel-janitors/7bffefc6-219a-4f71-baa0-ad4526e5c198@kili.mountain/
Fixes: c956b9b318 ("net: microchip: sparx5: Adding KUNIT tests of key/action values in VCAP API")
Signed-off-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-09-02 10:35:17 +01:00
..
Kconfig net: microchip: sparx5: Add VCAP debugfs KUNIT test 2022-11-21 11:33:02 +00:00
Makefile net: microchip: vcap: Add tc flower keys for lan966x 2023-02-10 08:03:09 +00:00
vcap_ag_api.h net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
vcap_api.c net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
vcap_api.h net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
vcap_api_client.h net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
vcap_api_debugfs.c net: microchip: sparx5: clean up error checking in vcap_show_admin() 2023-10-03 07:13:32 -07:00
vcap_api_debugfs.h net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
vcap_api_debugfs_kunit.c net: microchip: Constify struct vcap_operations 2024-06-18 15:26:39 +02:00
vcap_api_kunit.c net: microchip: vcap: Fix use-after-free error in kunit test 2024-09-02 10:35:17 +01:00
vcap_api_private.h net: sparx5: Correct spelling in comments 2024-04-25 19:13:26 -07:00
vcap_model_kunit.c net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
vcap_model_kunit.h net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
vcap_tc.c net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00
vcap_tc.h net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00