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

2024-06-02 Thread Huai-Yuan Liu
reset() for reset.") Signed-off-by: Huai-Yuan Liu --- drivers/gpu/drm/tegra/dc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index be61c9d1a4f0..7648e129c212 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drive

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

2024-06-02 Thread Huai-Yuan Liu
reset() for reset.") Signed-off-by: Huai-Yuan Liu --- V2: * In patch V2, we call __drm_atomic_helper_crtc_reset(crtc, NULL) when state is null. Thanks to Thierry Reding for helpful suggestion. --- drivers/gpu/drm/tegra/dc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

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

2024-04-08 Thread Huai-Yuan Liu
ector") Signed-off-by: Huai-Yuan Liu --- V2: * In patch V2, we additionally set connector->state to NULL. In this way we can ensure that there is no state pointing to freed memory. Thanks to Liviu Dudau for helpful suggestion. --- drivers/gpu/drm/arm/malidp_mw.c | 5 - 1 file changed, 4 ins

[PATCH] drm/arm/malidp: fix a possible null pointer dereference

2024-04-03 Thread Huai-Yuan Liu
ector") Signed-off-by: Huai-Yuan Liu --- drivers/gpu/drm/arm/malidp_mw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/malidp_mw.c b/drivers/gpu/drm/arm/malidp_mw.c index 626709bec6f5..25623ef9be80 100644 --- a/drivers/gpu/drm/arm/malidp_mw.c +++ b/drive