aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2020-12-15 15:42:38 +0000
committerMaxime Ripard <[email protected]>2020-12-16 09:11:32 +0000
commite55a07751146ef8ebc2c561564437b78f46405d3 (patch)
tree88b03dec5ddc6238406249caa473a3005527992e /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentdrm/vc4: hdmi: Take into account the clock doubling flag in atomic_check (diff)
downloadkernel-e55a07751146ef8ebc2c561564437b78f46405d3.tar.gz
kernel-e55a07751146ef8ebc2c561564437b78f46405d3.zip
drm/vc4: hdmi: Don't access the connector state in reset if kmalloc fails
drm_atomic_helper_connector_reset uses kmalloc which, from an API standpoint, can fail, and thus setting connector->state to NULL. However, our reset hook then calls drm_atomic_helper_connector_tv_reset that will access connector->state without checking if it's a valid pointer or not. Make sure we don't end up accessing a NULL pointer. Acked-by: Thomas Zimmermann <[email protected]> Reviewed-by: Dave Stevenson <[email protected]> Suggested-by: Dave Stevenson <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions