]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr
authorDeepak Rawat <drawat@vmware.com>
Mon, 26 Jun 2017 12:39:08 +0000 (14:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:35:13 +0000 (14:35 +0200)
commitc477c689c2a305a9bf073605cc0d839665443f5a
treeddb6c74bb603954c3e86fbfb9b93991e5ed1207e
parent19ef1f1ddbec65a0ba062af41d06d8ddac3804b5
drm/vmwgfx: Free hash table allocated by cmdbuf managed res mgr

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.

Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c