]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: do not leave queue acquired if timeout happens in kgd_hqd_destroy()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 3 Jan 2015 23:31:20 +0000 (02:31 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Sat, 3 Jan 2015 23:31:20 +0000 (02:31 +0300)
commit091e7e711034843077d9c8733e7a7284e59c91a0
treec942776401f270bbebc58f8c0a009d869af61413
parent2c779b736960fc1dd13badef0b0d72e69085e5ee
drm/radeon: do not leave queue acquired if timeout happens in kgd_hqd_destroy()

If timeout happens, kgd_hqd_destroy() just returns -ETIME leaving queue
acquired.
It may cause a deadlock, so the patch proposes to release queue before return.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/radeon/radeon_kfd.c