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

From: Gerd Hoffmann
Date: Fri Aug 07 2020 - 08:43:19 EST


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