diff options
author | Stanimir Varbanov <stanimir.varbanov@linaro.org> | 2021-04-23 10:24:54 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-10-21 16:20:26 +0300 |
commit | b46ff4eb34ce250df30dc239bab5fedc64c317ed (patch) | |
tree | 73870904eeff10a4f881a04ca000eb76a0b71ffc /drivers/media/platform/qcom/venus/vdec.c | |
parent | 3f3e877ce8efabe44ddc8e13885f99cdc770e198 (diff) | |
download | linux-b46ff4eb34ce250df30dc239bab5fedc64c317ed.tar.xz |
media: venus: Make sys_error flag an atomic bitops
Make the sys_error flag an atomic bitops in order to avoid
locking in sys_error readers.
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Tested-by: Vikash Garodia <vgarodia@codeaurora.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/qcom/venus/vdec.c')
-rw-r--r-- | drivers/media/platform/qcom/venus/vdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index 41c5a353fcae..11990a95d346 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -1231,7 +1231,7 @@ static void vdec_session_release(struct venus_inst *inst) ret = hfi_session_deinit(inst); abort = (ret && ret != -EINVAL) ? 1 : 0; - if (inst->session_error || core->sys_error) + if (inst->session_error || test_bit(0, &core->sys_error)) abort = 1; if (abort) |