linux/drivers/gpu/drm/panel
Dan Carpenter 4951eb4bb6 drm/panel: type promotion bug in s6e8aa0_read_mtp_id()
[ Upstream commit cd0e0ca691 ]

The ARRAY_SIZE() macro is type size_t.  If s6e8aa0_dcs_read() returns a
negative error code, then "ret < ARRAY_SIZE(id)" is false because the
negative error code is type promoted to a high positive value.

Fixes: 02051ca063 ("drm/panel: add S6E8AA0 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180704093807.s3lqsb2v6dg2k43d@kili.mountain
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:35:10 +02:00
..
Kconfig drm/panel: Add support for LG LG4573 480x800 4.3" panel 2015-08-14 21:35:35 +02:00
Makefile drm/panel: Add support for LG LG4573 480x800 4.3" panel 2015-08-14 21:35:35 +02:00
panel-lg-lg4573.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
panel-samsung-ld9040.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
panel-samsung-s6e8aa0.c drm/panel: type promotion bug in s6e8aa0_read_mtp_id() 2018-09-26 08:35:10 +02:00
panel-sharp-lq101r1sx01.c drm/panel: sharp: lq101r1sx01: Remove unneeded include 2015-01-28 08:45:39 +01:00
panel-simple.c drm/panel: simple: Add missing panel_simple_unprepare() calls 2017-12-05 11:22:51 +01:00