diff options
author | 2021-12-08 23:37:23 +0100 | |
---|---|---|
committer | 2021-12-09 07:58:41 -0800 | |
commit | 9acfc57fa2b8944ed079cedbf846823ea32b8a31 (patch) | |
tree | eb9e6e7176772763355d37f1176e932500b1af00 /tools/perf/scripts/python/stackcollapse.py | |
parent | seg6: fix the iif in the IPv6 socket control block (diff) | |
download | linux-dev-9acfc57fa2b8944ed079cedbf846823ea32b8a31.tar.xz linux-dev-9acfc57fa2b8944ed079cedbf846823ea32b8a31.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions