drm/amdkfd: destroy dbgmgr in notifier release
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 26 May 2016 05:41:48 +0000 (08:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 16:47:34 +0000 (09:47 -0700)
commit83a6e52a5129266b77cd82de6c151c14dfc95138
tree54aabf4d11c3c5f7d21436bf25ef47fa69f3dc91
parentcf2e8061303f03be32a3c285cd06a73a42f7ceab
drm/amdkfd: destroy dbgmgr in notifier release

commit bc4755a4bd1845ef6e88ac8c62f12e05bb530256 upstream.

amdkfd need to destroy the debug manager in case amdkfd's notifier
function is called before the unbind function, because in that case,
the unbind function will exit without destroying debug manager.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdkfd/kfd_process.c