aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorMa Ke <[email protected]>2023-10-09 09:04:46 +0000
committerNeil Armstrong <[email protected]>2023-10-10 08:34:08 +0000
commitf22def5970c423ea7f87d5247bd0ef91416b0658 (patch)
tree1bc6e29450fb06f4fa65a9cb5c6c501da10bff54 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/panel: fix a possible null pointer dereference (diff)
downloadkernel-f22def5970c423ea7f87d5247bd0ef91416b0658.tar.gz
kernel-f22def5970c423ea7f87d5247bd0ef91416b0658.zip
drm/panel/panel-tpo-tpg110: fix a possible null pointer dereference
In tpg110_get_modes(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. Signed-off-by: Ma Ke <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions