diff options
author | Pin-yen Lin <[email protected]> | 2023-03-24 11:59:09 +0800 |
---|---|---|
committer | Douglas Anderson <[email protected]> | 2023-03-24 06:38:44 -0700 |
commit | 14aed8ea48e2f5c710ab678e1ba32b9f398d40b2 (patch) | |
tree | e7d4ab2bf80ddd5e78f7438cdfaf465db690957f /drivers/usb/cdns3/cdns3-debug.h | |
parent | 6a17b4d1b52f10a44c45eea2a9222088e7c9e573 (diff) |
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 <[email protected]>
Signed-off-by: Douglas Anderson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions