[PATCH][drm-next] drm/virtio: fix memory leak of vfpriv on error return path

Gerd Hoffmann kraxel at redhat.com
Wed Nov 14 12:14:39 UTC 2018


On Wed, Nov 07, 2018 at 08:31:22PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> 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



More information about the dri-devel mailing list