[lkml]   [2019]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH][next] dma-buf: fix resource leak on -ENOTTY error return path
On Mon, Dec 16, 2019 at 8:11 AM Colin King <> wrote:
> From: Colin Ian King <>
> 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 <>

Acked-by: John Stultz <>

Thanks so much for submitting this!

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


 \ /
  Last update: 2019-12-16 22:08    [W:0.026 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site