diff options
| author | Aleksandr Mishin <[email protected]> | 2024-04-08 12:58:10 +0000 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2024-04-08 15:35:41 +0000 |
| commit | 935a92a1c400285545198ca2800a4c6c519c650a (patch) | |
| tree | 7c8273d2667bb2bbbd9af6ed754ccc5a29c7e6b2 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | dt-bindings: display: bridge: it6505: Add #sound-dai-cells (diff) | |
| download | kernel-935a92a1c400285545198ca2800a4c6c519c650a.tar.gz kernel-935a92a1c400285545198ca2800a4c6c519c650a.zip | |
drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference
In cdns_mhdp_atomic_enable(), the return value of drm_mode_duplicate() is
assigned to mhdp_state->current_mode, and there is a dereference of it in
drm_mode_set_name(), which will lead to a NULL pointer dereference on
failure of drm_mode_duplicate().
Fix this bug add a check of mhdp_state->current_mode.
Fixes: fb43aa0acdfd ("drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge")
Signed-off-by: Aleksandr Mishin <[email protected]>
Reviewed-by: Robert Foss <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
