Patch "drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr" has been added to the 4.11-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr
to the 4.11-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-vmwgfx-free-hash-table-allocated-by-cmdbuf-managed-res-mgr.patch
and it can be found in the queue-4.11 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
82fcee526ba8ca2c5d378bdf51b21b7eb058fe3aMon Sep 17 00:00:00 2001
From: Deepak Rawat <[email protected]>
Date: Mon, 26 Jun 2017 14:39:08 +0200
Subject: drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr
From: Deepak Rawat <[email protected]>
commit 82fcee526ba8ca2c5d378bdf51b21b7eb058fe3a upstream.
The hash table created during vmw_cmdbuf_res_man_create was never freed. This causes memory leak in context creation. Added the corresponding drm_ht_remove in vmw_cmdbuf_res_man_destroy.
Tested for memory leak by running piglit overnight and kernel memory is not inflated which earlier was.
--- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +1 -0
@@ -321,6 +321,7 @@ void vmw_cmdbuf_res_man_destroy(struct vlist_for_each_entry_safe (entry, next, &man->list, head)vmw_cmdbuf_res_free (man, entry); +drm_ht_remove (&man->resources);kfree (man); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.11/drm-vmwgfx-free-hash-table-allocated-by-cmdbuf-managed-res-mgr.patch