diff options
author | AngeloGioacchino Del Regno <[email protected]> | 2024-11-12 11:50:30 +0100 |
---|---|---|
committer | Chun-Kuang Hu <[email protected]> | 2025-01-04 12:15:19 +0000 |
commit | f563dd9ca6cb6ed52c5fb6e4285d1ef26cfa7e8a (patch) | |
tree | 03cf2c4149a92c0c901aa7f5286e484db1d8d52e /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 522908140645865dc3e2fac70fd3b28834dfa7be (diff) |
drm/mediatek: Initialize pointer in mtk_drm_of_ddp_path_build_one()
The struct device_node *next pointer is not initialized, and it is
used in an error path in which it may have never been modified by
function mtk_drm_of_get_ddp_ep_cid().
Since the error path is relying on that pointer being NULL for the
OVL Adaptor and/or invalid component check and since said pointer
is being used in prints for %pOF, in the case that it points to a
bogus address, the print may cause a KP.
To resolve that, initialize the *next pointer to NULL before usage.
Fixes: 4c932840db1d ("drm/mediatek: Implement OF graphs support for display paths")
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/dri-devel/[email protected]/
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: CK Hu <[email protected]>
Reviewed-by: Alexandre Mergnat <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions