Re: [PATCH V2] drm/tegra: fix a possible null pointer dereference

2024-06-27 Thread Thierry Reding
On Sun Jun 2, 2024 at 10:46 AM CEST, Huai-Yuan Liu wrote: > In malidp_tegra_crtc_reset, new memory is allocated with kzalloc, but > no check is performed. Before calling __drm_atomic_helper_crtc_reset, > mw_state should be checked to prevent possible null pointer dereference. The commit message he

[PATCH V2] drm/tegra: fix a possible null pointer dereference

2024-06-02 Thread Huai-Yuan Liu
In malidp_tegra_crtc_reset, new memory is allocated with kzalloc, but no check is performed. Before calling __drm_atomic_helper_crtc_reset, mw_state should be checked to prevent possible null pointer dereference. Fixes: b7e0b04ae450 ("drm/tegra: Convert to using __drm_atomic_helper_crtc_reset() f