Files
linux/drivers
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
..
2021-11-26 19:45:31 +01:00
2021-11-23 10:55:48 +01:00
2021-11-26 22:54:47 +01:00
2021-11-23 12:32:28 +01:00
2021-10-26 19:12:01 +02:00
2021-11-16 14:41:23 +01:00
2021-11-18 20:40:28 +01:00