kernel_samsung_a53x/drivers/gpu/drm/bridge
Dan Carpenter f125cb32c8 drm/bridge: nxp-ptn3460: fix i2c_master_send() error checking
commit 914437992876838662c968cb416f832110fb1093 upstream.

The i2c_master_send/recv() functions return negative error codes or the
number of bytes that were able to be sent/received.  This code has
two problems.  1)  Instead of checking if all the bytes were sent or
received, it checks that at least one byte was sent or received.
2) If there was a partial send/receive then we should return a negative
error code but this code returns success.

Fixes: a9fe713d7d45 ("drm/bridge: Add PTN3460 bridge driver")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/0cdc2dce-ca89-451a-9774-1482ab2f4762@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:13:03 +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 drm/bridge: nxp-ptn3460: fix i2c_master_send() error checking 2024-11-18 12:13:03 +01: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 drm/bridge: tc358767: Fix return value on error case 2024-11-18 12:12:40 +01:00
tc358768.c drm/bridge: tc358768: Fix bit updates 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 drm/bridge: tpd12s015: Drop buggy __exit annotation for remove function 2024-11-18 12:12:39 +01:00