diff options
| author | Haoxiang Li <haoxiang_li2024@163.com> | 2025-10-08 16:55:03 +0800 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-01-05 15:56:31 +0100 |
| commit | 8a8a3232abac5b972058a5f2cb3e33199d2a8648 (patch) | |
| tree | 8a63a3f05f7bde7a4943049d3eeec3e4d875e2c0 /tools/lib/python | |
| parent | 8beb7e982fae2f7b37018e522d8b864691bbf4d3 (diff) | |
| download | linux-8a8a3232abac5b972058a5f2cb3e33199d2a8648.tar.gz linux-8a8a3232abac5b972058a5f2cb3e33199d2a8648.zip | |
media: mtk-mdp: Fix error handling in probe function
Add mtk_mdp_unregister_m2m_device() on the error handling path to prevent
resource leak.
Add check for the return value of vpu_get_plat_device() to prevent null
pointer dereference. And vpu_get_plat_device() increases the reference
count of the returned platform device. Add platform_device_put() to
prevent reference leak.
Fixes: c8eb2d7e8202 ("[media] media: Add Mediatek MDP Driver")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
