aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge/cdns-dsi.c
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2021-08-27 16:39:55 +0000
committerRobert Foss <[email protected]>2021-08-31 14:12:51 +0000
commit3a5f3d61de657bc1c2b53b77d065c5526f982e10 (patch)
tree809bac1123948e696f27c3feb1a5beae4553238d /drivers/gpu/drm/bridge/cdns-dsi.c
parentdrm/bridge: anx7625: enable DSI EOTP (diff)
downloadkernel-3a5f3d61de657bc1c2b53b77d065c5526f982e10.tar.gz
kernel-3a5f3d61de657bc1c2b53b77d065c5526f982e10.zip
drm/bridge: it66121: Initialize {device,vendor}_ids
These two arrays are populated with data read from the I2C device through regmap_read(), and the data is then compared with hardcoded vendor/product ID values of supported chips. However, the return value of regmap_read() was never checked. This is fine, as long as the two arrays are zero-initialized, so that we don't compare the vendor/product IDs against whatever garbage is left on the stack. Address this issue by zero-initializing these two arrays. Signed-off-by: Paul Cercueil <[email protected]> Fixes: 988156dc2fc9 ("drm: bridge: add it66121 driver") Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/bridge/cdns-dsi.c')
0 files changed, 0 insertions, 0 deletions