diff options
| author | Qiu-ji Chen <[email protected]> | 2024-11-06 09:59:06 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2025-05-07 16:07:27 +0000 |
| commit | 780351a5f61416ed2ba1199cc57e4a076fca644d (patch) | |
| tree | 943abcb6598ed82a0b9f1ac39c7cfc0456c7c1a2 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/tegra: rgb: Fix the unbound reference count (diff) | |
| download | kernel-780351a5f61416ed2ba1199cc57e4a076fca644d.tar.gz kernel-780351a5f61416ed2ba1199cc57e4a076fca644d.zip | |
drm/tegra: Fix a possible null pointer dereference
In tegra_crtc_reset(), new memory is allocated with kzalloc(), but
no check is performed. Before calling __drm_atomic_helper_crtc_reset,
state should be checked to prevent possible null pointer dereference.
Fixes: b7e0b04ae450 ("drm/tegra: Convert to using __drm_atomic_helper_crtc_reset() for reset.")
Cc: [email protected]
Signed-off-by: Qiu-ji Chen <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
