Skip to content
Snippets Groups Projects
user avatar
Pin-yen Lin authored
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: 6a17b4d1 ("drm/bridge: ps8640: Add a cache for EDID")
Signed-off-by: default avatarPin-yen Lin <treapking@chromium.org>
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230324035909.1727356-1-treapking@chromium.org
14aed8ea
History
Name Last commit Last update