summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@collabora.com>2023-12-28 14:32:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-12 12:39:31 +0300
commit56c5f1b7f09d8ef8f0e46adb9125bf95505824bc (patch)
treec28fb31a3cc0dd5035570f5b524789d4affc498c /.clang-format
parentf1b6a016dfa45cedc080d36fa5d6f22237d80e8b (diff)
downloadlinux-56c5f1b7f09d8ef8f0e46adb9125bf95505824bc.tar.xz
media: mediatek: vcodec: fix possible unbalanced PM counter
[ Upstream commit c28d4921a1e3ce0a0374b7e9d68593be8802c42a ] It is possible that mtk_vcodec_enc_pw_on fails, and in that scenario the PM counter is not incremented, and subsequent call to mtk_vcodec_enc_pw_off decrements the counter, leading to a PM imbalance. Fix by bailing out of venc_if_encode in the case when mtk_vcodec_enc_pw_on fails. Fixes: 4e855a6efa54 ("[media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver") Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions