[PATCH][next] dma-buf: fix resource leak on -ENOTTY error return path

John Stultz john.stultz at linaro.org
Mon Dec 16 21:07:26 UTC 2019


On Mon, Dec 16, 2019 at 8:11 AM Colin King <colin.king at canonical.com> wrote:
>
> From: Colin Ian King <colin.king at canonical.com>
>
> 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 at canonical.com>

Acked-by: John Stultz <john.stultz at linaro.org>

Thanks so much for submitting this!

Sumit, do you mind queueing this up for drm-misc-next?

thanks
-john


More information about the dri-devel mailing list