1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/microsoft/mana
José Expósito 9acfc57fa2 net: mana: Fix memory leak in mana_hwc_create_wq
If allocating the DMA buffer fails, mana_hwc_destroy_wq was called
without previously storing the pointer to the queue.

In order to avoid leaking the pointer to the queue, store it as soon as
it is allocated.

Addresses-Coverity-ID: 1484720 ("Resource leak")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Link: https://lore.kernel.org/r/20211208223723.18520-1-jose.exposito89@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-12-09 07:58:41 -08:00
..
gdma.h net: mana: Add support for EQ sharing 2021-08-25 11:06:54 +01:00
gdma_main.c net: mana: Fix spelling mistake "calledd" -> "called" 2021-11-09 19:16:55 -08:00
hw_channel.c net: mana: Fix memory leak in mana_hwc_create_wq 2021-12-09 07:58:41 -08:00
hw_channel.h
Makefile
mana.h net: mana: Support hibernation and kexec 2021-11-01 13:21:49 +00:00
mana_en.c net: mana: Support hibernation and kexec 2021-11-01 13:21:49 +00:00
mana_ethtool.c net: mana: Allow setting the number of queues while the NIC is down 2021-10-26 14:56:19 +01:00
shm_channel.c
shm_channel.h