diff options
author | 2019-12-16 16:10:59 +0000 | |
---|---|---|
committer | 2019-12-17 22:28:14 +0530 | |
commit | f9d3b2c600075d1f79efcd5cdb1718c2f554c0f9 (patch) | |
tree | fb26ec347045da28cf10ab0c76e442e92b1a6b09 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm: remove duplicate check on parent and avoid BUG_ON (diff) | |
download | wireguard-linux-f9d3b2c600075d1f79efcd5cdb1718c2f554c0f9.tar.xz wireguard-linux-f9d3b2c600075d1f79efcd5cdb1718c2f554c0f9.zip |
dma-buf: fix resource leak on -ENOTTY error return path
The -ENOTTY error return path does not free the allocated
kdata as it returns directly. Fix this by returning via the
error handling label err.
Addresses-Coverity: ("Resource leak")
Fixes: c02a81fba74f ("dma-buf: Add dma-buf heaps framework")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191216161059.269492-1-colin.king@canonical.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions