Patch "drm/virtio: don't leak bo on drm_gem_object_init failure" has been added to the 4.4-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm/virtio: don't leak bo on drm_gem_object_init failure
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-virtio-don-t-leak-bo-on-drm_gem_object_init-failure.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
385aee965b4e4c36551c362a334378d2985b722aMon Sep 17 00:00:00 2001
From: Gerd Hoffmann <[email protected]>
Date: Thu, 6 Apr 2017 17:59:40 +0200
Subject: drm/virtio: don't leak bo on drm_gem_object_init failure
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Gerd Hoffmann <[email protected]>
commit 385aee965b4e4c36551c362a334378d2985b722a upstream.
--- drivers/gpu/drm/virtio/virtgpu_object.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/virtio/virtgpu_object.c +3 -1
@@ -81,8 +81,10 @@ int virtio_gpu_object_create(struct virtreturn -ENOMEM ; size =roundup (size,PAGE_SIZE ); ret =drm_gem_object_init (vgdev->ddev, &bo->gem_base, size); -if (ret !=0 ) +if (ret !=0 ) { +kfree (bo);return ret; + } bo->dumb = false;virtio_gpu_init_ttm_placement (bo, pinned);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/drm-virtio-don-t-leak-bo-on-drm_gem_object_init-failure.patch