1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microsoft/mana
Ma Ke 1864b82241 net: mana: Fix possible double free in error handling path
When auxiliary_device_add() returns error and then calls
auxiliary_device_uninit(), callback function adev_release
calls kfree(madev). We shouldn't call kfree(madev) again
in the error handling path. Set 'madev' to NULL.

Fixes: a69839d432 ("net: mana: Add support for auxiliary device")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Link: https://patch.msgid.link/20240625130314.2661257-1-make24@iscas.ac.cn
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-06-27 12:35:58 +02:00
..
gdma_main.c net: mana: Assigning IRQ affinity on HT cores 2024-02-01 13:06:40 +01:00
hw_channel.c Quite smaller than usual. Notably it includes the fix for the unix 2024-05-23 12:49:37 -07:00
Makefile net: mana: Add XDP support 2021-11-22 13:20:19 +00:00
mana_bpf.c net: mana: Add support for jumbo frame 2023-04-14 08:56:19 +01:00
mana_en.c net: mana: Fix possible double free in error handling path 2024-06-27 12:35:58 +02:00
mana_ethtool.c net: ethtool: pass a pointer to parameters to get/set_rxfh ethtool ops 2023-12-13 22:07:16 -08:00
shm_channel.c net: mana: Move header files to a common location 2022-11-10 07:57:26 +02:00