diff options
| author | Jiasheng Jiang <[email protected]> | 2023-02-09 14:52:45 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2023-03-19 22:53:47 +0100 |
| commit | d00f592250782538cda87745607695b0fe27dcd4 (patch) | |
| tree | 04343432f8bbfc8e29aed8b1f9ed5c181416d07c /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 35dac920f721ccfed1116e807b90d8971db3d457 (diff) | |
media: platform: mtk-mdp3: Add missing check and free for ida_alloc
Add the check for the return value of the ida_alloc in order to avoid
NULL pointer dereference.
Moreover, free allocated "ctx->id" if mdp_m2m_open fails later in order
to avoid memory leak.
Fixes: 61890ccaefaf ("media: platform: mtk-mdp3: add MediaTek MDP3 driver")
Signed-off-by: Jiasheng Jiang <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions