Re: [PATCH][drm-next] drm/virtio: fix memory leak of vfpriv on error return path
From: Gerd Hoffmann
Date: Wed Nov 14 2018 - 07:14:42 EST
On Wed, Nov 07, 2018 at 08:31:22PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> The allocation for vfpriv is being leaked on an error return path,
> fix this by kfree'ing it before returning.
>
> Detected by CoverityScan, CID#1475380 ("Resource Leak")
Patches added to qemu queue, should land in drm-misc-next soon.
thanks,
Gerd