amdgpu: Destroy fd_hash table when the last device is removed.
authorJan Vesely <jan.vesely@rutgers.edu>
Fri, 18 May 2018 15:39:15 +0000 (11:39 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Fri, 25 May 2018 16:12:00 +0000 (12:12 -0400)
commitc1f2d9b900e30119bcf6f88c0d11a0dd620fd060
treec0307cd6398788db1ea202814c593b1ff5b00a1e
parent52ef6fbaf1962dac2a8b75078c20d65da90cfe8d
amdgpu: Destroy fd_hash table when the last device is removed.

Fixes memory leak on module unload.
Analogous to mesa commit of the same name.
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
amdgpu/amdgpu_device.c