Thread (3 messages) 3 messages, 3 authors, 2021-12-09

RE: [PATCH] net: mana: Fix memory leak in mana_hwc_create_wq

From: Dexuan Cui <decui@microsoft.com>
Date: 2021-12-09 00:32:50
Also in: dri-devel, linux-media, lkml, netdev

From: José Expósito <redacted>
Sent: Wednesday, December 8, 2021 2:37 PM

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 <redacted>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help