diff options
author | Qiu-ji Chen <chenqiuji666@gmail.com> | 2024-11-06 17:59:06 +0800 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2025-05-07 18:07:27 +0200 |
commit | 780351a5f61416ed2ba1199cc57e4a076fca644d (patch) | |
tree | 943abcb6598ed82a0b9f1ac39c7cfc0456c7c1a2 /scripts/gdb/linux/utils.py | |
parent | 3c3642335065c3bde0742b0edc505b6ea8fdc2b3 (diff) |
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: stable@vger.kernel.org
Signed-off-by: Qiu-ji Chen <chenqiuji666@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20241106095906.15247-1-chenqiuji666@gmail.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions