winsys/amdgpu: Destroy dev_hash table when the last winsys is removed.
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 10 May 2018 22:29:13 +0000 (18:29 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Fri, 11 May 2018 03:23:50 +0000 (23:23 -0400)
commit58272c1ad771802a6f15a482ae552649e9085042
tree9415ae2691cf41788e3a42bad3bd43c4ad84d164
parenta2e9d9b4c199ff1b53a625a345e566200016e2d9
winsys/amdgpu: Destroy dev_hash table when the last winsys is removed.

Fixes memory leak on module unload.

CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c