diff options
| author | Eugen Hristev <eugen.hristev@collabora.com> | 2023-12-28 13:32:40 +0200 |
|---|---|---|
| committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-04-27 10:04:30 +0200 |
| commit | c28d4921a1e3ce0a0374b7e9d68593be8802c42a (patch) | |
| tree | d34057217050792f658785de67ffb147dbe62f13 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | media: mediatek: vcodec: Only free buffer VA that is not NULL (diff) | |
| download | linux-c28d4921a1e3ce0a0374b7e9d68593be8802c42a.tar.gz linux-c28d4921a1e3ce0a0374b7e9d68593be8802c42a.zip | |
media: mediatek: vcodec: fix possible unbalanced PM counter
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>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
