]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm: bridge: anx7625: Fix NULL pointer dereference with early IRQ
authorLoic Poulain <loic.poulain@oss.qualcomm.com>
Wed, 9 Jul 2025 08:54:38 +0000 (10:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 08:58:53 +0000 (10:58 +0200)
commitf9a089d0a6d537d0f2061c8a37a7de535ce0310e
treed41bbe6ff66419d06ba8327e09ccf0a98075c9f7
parent509e5c234832234f98c24b4b1d545097a76be660
drm: bridge: anx7625: Fix NULL pointer dereference with early IRQ

[ Upstream commit a10f910c77f280327b481e77eab909934ec508f0 ]

If the interrupt occurs before resource initialization is complete, the
interrupt handler/worker may access uninitialized data such as the I2C
tcpc_client device, potentially leading to NULL pointer dereference.

Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Fixes: 8bdfc5dae4e3 ("drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250709085438.56188-1-loic.poulain@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/analogix/anx7625.c