Searched hist:f9d3b2c6 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/dma-buf/ |
H A D | dma-heap.c | f9d3b2c6 Mon Dec 16 10:10:59 CST 2019 Colin Ian King <colin.king@canonical.com> 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 f9d3b2c6 Mon Dec 16 10:10:59 CST 2019 Colin Ian King <colin.king@canonical.com> 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
|