]> git.baikalelectronics.ru Git - kernel.git/commit
media: venus: core: Fix mutex destroy in remove
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 31 Mar 2020 15:37:02 +0000 (17:37 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 May 2020 11:03:47 +0000 (13:03 +0200)
commit462c8f2e76ac7ed6a2a285e9adad3137f39929fe
tree2087c3ce55bc1c7a5c26fa55f7303a0c354d5bad
parentfbb1617096df800ae2031134500372c601b24420
media: venus: core: Fix mutex destroy in remove

The hfi_destroy function is called too early in remove method. It
destroys a mutex which is used later in the .remove from pmruntime.
Solve the issue by moving hfi_destroy after last usage of the mutex.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/core.c