diff options
author | Stanimir Varbanov <stanimir.varbanov@linaro.org> | 2017-06-15 13:31:51 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-20 08:53:40 -0300 |
commit | 8a5aebf12703c0b580076b10a8b307b6a40f7b21 (patch) | |
tree | d755c2e30629f3b0f121fb5651f1fc9894a2dcf5 /drivers/media/platform/qcom/venus/hfi.c | |
parent | 703528005e5861ed81f694368cfe80e6829d570f (diff) | |
download | linux-stable-8a5aebf12703c0b580076b10a8b307b6a40f7b21.tar.gz linux-stable-8a5aebf12703c0b580076b10a8b307b6a40f7b21.tar.bz2 linux-stable-8a5aebf12703c0b580076b10a8b307b6a40f7b21.zip |
[media] media: venus: hfi: fix mutex unlock
This fixed a warning when build driver with gcc7:
drivers/media/platform/qcom/venus/hfi.c:171
hfi_core_ping() warn: inconsistent returns 'mutex:&core->lock'.
Locked on: line 159
Unlocked on: line 171
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/qcom/venus/hfi.c')
-rw-r--r-- | drivers/media/platform/qcom/venus/hfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/hfi.c b/drivers/media/platform/qcom/venus/hfi.c index 20c9205fdbb4..c09490876516 100644 --- a/drivers/media/platform/qcom/venus/hfi.c +++ b/drivers/media/platform/qcom/venus/hfi.c @@ -156,7 +156,7 @@ int hfi_core_ping(struct venus_core *core) ret = core->ops->core_ping(core, 0xbeef); if (ret) - return ret; + goto unlock; ret = wait_for_completion_timeout(&core->done, TIMEOUT); if (!ret) { |