Re: [PATCH] drm/sti: avoid potential dereference of error pointers in sti_hqvdp_atomic_check

2024-09-24 Thread Alain Volmat
Hi, On Fri, Sep 13, 2024 at 05:09:26PM +0800, Ma Ke wrote: > The return value of drm_atomic_get_crtc_state() needs to be > checked. To avoid use of error pointer 'crtc_state' in case > of the failure. > > Cc: sta...@vger.kernel.org > Fixes: dd86dc2f9ae1 ("drm/sti: implement atomic_check for the p

[PATCH] drm/sti: avoid potential dereference of error pointers in sti_hqvdp_atomic_check

2024-09-13 Thread Ma Ke
The return value of drm_atomic_get_crtc_state() needs to be checked. To avoid use of error pointer 'crtc_state' in case of the failure. Cc: sta...@vger.kernel.org Fixes: dd86dc2f9ae1 ("drm/sti: implement atomic_check for the planes") Signed-off-by: Ma Ke --- drivers/gpu/drm/sti/sti_hqvdp.c | 3 +

[PATCH] drm/sti: avoid potential dereference of error pointers in sti_gdp_atomic_check

2024-08-30 Thread Ma Ke
The return value of drm_atomic_get_crtc_state() needs to be checked. To avoid use of error pointer 'crtc_state' in case of the failure. Cc: sta...@vger.kernel.org Fixes: dd86dc2f9ae1 ("drm/sti: implement atomic_check for the planes") Signed-off-by: Ma Ke --- drivers/gpu/drm/sti/sti_gdp.c | 3 +++

[PATCH] drm/sti: avoid potential dereference of error pointers

2024-08-19 Thread Ma Ke
The return value of drm_atomic_get_crtc_state() needs to be checked. To avoid use of error pointer 'crtc_state' in case of the failure. Cc: sta...@vger.kernel.org Fixes: dec92020671c ("drm: Use the state pointer directly in planes atomic_check") Signed-off-by: Ma Ke --- drivers/gpu/drm/sti/sti_

[PATCH] drm/sti: avoid potential dereference of error pointers

2023-09-22 Thread Ma Ke
The return value of drm_atomic_get_crtc_state() needs to be checked. To avoid use of error pointer 'crtc_state' in case of the failure. Signed-off-by: Ma Ke --- drivers/gpu/drm/sti/sti_cursor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/sti/sti_cursor.c b/drivers/gpu/d

[PATCH] drm/sti: avoid potential dereference of error pointers

2023-09-20 Thread Ma Ke
The return value of drm_atomic_get_crtc_state() needs to be checked. To avoid use of error pointer 'crtc_state' in case of the failure. Signed-off-by: Ma Ke --- drivers/gpu/drm/sti/sti_cursor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/sti/sti_cursor.c b/drivers/gpu/d