3fdd8f3a94
[ Upstream commit 935a92a1c400285545198ca2800a4c6c519c650a ] In cdns_mhdp_atomic_enable(), the return value of drm_mode_duplicate() is assigned to mhdp_state->current_mode, and there is a dereference of it in drm_mode_set_name(), which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Fix this bug add a check of mhdp_state->current_mode. Fixes: fb43aa0acdfd ("drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge") Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru> Reviewed-by: Robert Foss <rfoss@kernel.org> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240408125810.21899-1-amishin@t-argos.ru Signed-off-by: Sasha Levin <sashal@kernel.org> |
||
---|---|---|
.. | ||
adv7511 | ||
analogix | ||
cadence | ||
synopsys | ||
cdns-dsi.c | ||
chrontel-ch7033.c | ||
display-connector.c | ||
Kconfig | ||
lontium-lt9611.c | ||
lvds-codec.c | ||
Makefile | ||
megachips-stdpxxxx-ge-b850v3-fw.c | ||
nwl-dsi.c | ||
nwl-dsi.h | ||
nxp-ptn3460.c | ||
panel.c | ||
parade-ps8622.c | ||
parade-ps8640.c | ||
sii902x.c | ||
sii9234.c | ||
sil-sii8620.c | ||
sil-sii8620.h | ||
simple-bridge.c | ||
tc358762.c | ||
tc358764.c | ||
tc358767.c | ||
tc358768.c | ||
tc358775.c | ||
thc63lvd1024.c | ||
ti-sn65dsi86.c | ||
ti-tfp410.c | ||
ti-tpd12s015.c |