summaryrefslogtreecommitdiff
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorStanimir Varbanov <stanimir.varbanov@linaro.org>2020-03-31 16:54:28 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-05 13:03:25 +0200
commitcb1c05c89b1f0b5ee24b65fbad3811127f3205d0 (patch)
treebfb3c0470a0ad81c22994fbcac43822efa26133a /drivers/media/platform
parente51759f56d314d28c25be7606b03791f048e44c7 (diff)
media: venus: core: Add missing mutex destroy
This adds missing mutex_destroy in remove method of venus core driver. Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/qcom/venus/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c
index 4395cb96fb04..f8b9a732bc65 100644
--- a/drivers/media/platform/qcom/venus/core.c
+++ b/drivers/media/platform/qcom/venus/core.c
@@ -335,6 +335,7 @@ static int venus_remove(struct platform_device *pdev)
v4l2_device_unregister(&core->v4l2_dev);
mutex_destroy(&core->pm_lock);
+ mutex_destroy(&core->lock);
return ret;
}