[PATCH] drm/bridge: tc358767: fix uninitialized variable regression
Luca Ceresoli
luca.ceresoli at bootlin.com
Thu Jul 3 23:28:25 UTC 2025
On Thu, 3 Jul 2025 19:00:44 +0100
"Colin King (gmail)" <colin.i.king at gmail.com> wrote:
> On 03/07/2025 17:32, Luca Ceresoli wrote:
> > Commit a59a27176914 ("drm/bridge: tc358767: convert to
> > devm_drm_bridge_alloc() API") split tc_probe_bridge_endpoint() in two
> > functions, thus duplicating the loop over the endpoints in each of those
> > functions. However it missed duplicating the of_graph_parse_endpoint() call
> > which initializes the struct of_endpoint, resulting in an uninitialized
> > read.
> >
> > Fixes: a59a27176914 ("drm/bridge: tc358767: convert to devm_drm_bridge_alloc() API")
> > Reported-by: Colin King (gmail) <colin.i.king at gmail.com>
> > Closes: https://lore.kernel.org/all/056b34c3-c1ea-4b8c-9672-c98903ffd012@gmail.com056b34c3-c1ea-4b8c-9672-c98903ffd012@gmail.com
Dang, broken URL. I could not check it because lore was down when I
sent the patch.
Ignore this patch, sending v2.
> Reviewed-by: Colin Ian King <colin.i.king at gmail.com>
Thanks,
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the dri-devel
mailing list