Files
erofs-linux/drivers/net/ethernet
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 <[email protected]>
Reviewed-by: Dexuan Cui <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
2021-12-09 07:58:41 -08:00
..
…
…
…
…
…
…
…
2021-11-05 10:14:38 +00:00
…
2021-11-12 20:13:28 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…