kernel_samsung_a53x/drivers/gpu/drm/bridge
Tomi Valkeinen a3c91fad61 drm/bridge: tc358768: Fix use of uninitialized variable
[ Upstream commit a2d9036615f0adfa5b0a46bb2ce42ef1d9a04fbe ]

smatch reports:

drivers/gpu/drm/bridge/tc358768.c:223 tc358768_update_bits() error: uninitialized symbol 'orig'.

Fix this by bailing out from tc358768_update_bits() if the
tc358768_read() produces an error.

Fixes: ff1ca6397b1d ("drm/bridge: Add tc358768 driver")
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Tested-by: Maxim Schwalm <maxim.schwalm@gmail.com> # Asus TF700T
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230906-tc358768-v4-2-31725f008a50@ideasonboard.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:42:55 +01:00
..
adv7511 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
analogix Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cadence Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
synopsys Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdns-dsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chrontel-ch7033.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
display-connector.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lontium-lt9611.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lvds-codec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
megachips-stdpxxxx-ge-b850v3-fw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nwl-dsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nwl-dsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nxp-ptn3460.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
panel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
parade-ps8622.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
parade-ps8640.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sii902x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sii9234.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sil-sii8620.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sil-sii8620.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
simple-bridge.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tc358762.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tc358764.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tc358767.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tc358768.c drm/bridge: tc358768: Fix use of uninitialized variable 2024-11-18 11:42:55 +01:00
tc358775.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thc63lvd1024.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti-sn65dsi86.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti-tfp410.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti-tpd12s015.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00