1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microchip
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
..
lan966x net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
sparx5 net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
vcap net: microchip: vcap: Fix use-after-free error in kunit test 2024-09-02 10:35:17 +01:00
enc28j60.c net: enc28j60: Use threaded interrupt instead of workqueue 2023-05-11 18:00:37 -07:00
enc28j60_hw.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
encx24j600-regmap.c net: encx24j600: constify struct regmap_bus/regmap_config 2024-07-05 17:02:20 -07:00
encx24j600.c net: encx24j600: Correct spelling in comments 2024-04-25 19:13:26 -07:00
encx24j600_hw.h net: encx24j600: Correct spelling in comments 2024-04-25 19:13:26 -07:00
Kconfig net: lan743x: also select PHYLIB 2023-10-05 09:10:18 -07:00
lan743x_ethtool.c net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
lan743x_ethtool.h net: lan743x: Add support to SGMII register dump for PCI11010/PCI11414 chips 2022-11-09 19:20:13 -08:00
lan743x_main.c net: lan743x: Support WOL at both the PHY and MAC appropriately 2024-06-18 12:04:23 +02:00
lan743x_main.h net: lan743x: Support WOL at both the PHY and MAC appropriately 2024-06-18 12:04:23 +02:00
lan743x_ptp.c net: microchip: lan743x: Reduce PTP timeout on HW failure 2024-05-06 11:41:32 +02:00
lan743x_ptp.h net: microchip: lan743x: Reduce PTP timeout on HW failure 2024-05-06 11:41:32 +02:00
Makefile net: microchip: sparx5: Adding initial tc flower support for VCAP API 2022-10-24 10:37:43 +01:00