diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-07-04 12:38:09 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-07-10 17:59:05 +0200 |
commit | cd0e0ca69109d025b1a1b6609f70682db62138b0 (patch) | |
tree | 07abaab8e13ad3597cd460ae910e7bddaf562b86 /lib/fonts/font_mini_4x6.c | |
parent | ebc950fdff6d5f9250cd5a5a348af97f7d8508df (diff) | |
download | linux-cd0e0ca69109d025b1a1b6609f70682db62138b0.tar.gz linux-cd0e0ca69109d025b1a1b6609f70682db62138b0.tar.bz2 linux-cd0e0ca69109d025b1a1b6609f70682db62138b0.zip |
drm/panel: type promotion bug in s6e8aa0_read_mtp_id()
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: 02051ca06371 ("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
Diffstat (limited to 'lib/fonts/font_mini_4x6.c')
0 files changed, 0 insertions, 0 deletions