[PATCH] drm/virtio: fix memory leak in virtio_gpu_cleanup_object()

Gerd Hoffmann kraxel at redhat.com
Fri Aug 7 12:43:10 UTC 2020


On Wed, Jul 22, 2020 at 01:18:51PM +0800, Xin He wrote:
> Before setting shmem->pages to NULL, kfree() should
> be called.

>  			sg_free_table(shmem->pages);
> +			kfree(shmem->pages);
>  			shmem->pages = NULL;

Pushed to drm-misc-fixes.

thanks,
  Gerd



More information about the dri-devel mailing list