Home
last modified time | relevance | path

Searched hist:"14 aed8ea48e2f5c710ab678e1ba32b9f398d40b2" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/bridge/
H A Dparade-ps8640.cdiff 14aed8ea48e2f5c710ab678e1ba32b9f398d40b2 Thu Mar 23 22:59:09 CDT 2023 Pin-yen Lin <treapking@chromium.org> drm/bridge: ps8640: Return NULL immediately when EDID read fail

drm_edid_read returns NULL on error, so feeding it directly into
drm_edid_duplicate may lead to NULL pointer dereference. Add a check to
guard this.

Fixes: 6a17b4d1b52f ("drm/bridge: ps8640: Add a cache for EDID")
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230324035909.1727356-1-treapking@chromium.org