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

From: Raphaël Gallais-Pou
Date: Thu Aug 29 2024 - 13:04:29 EST




Le 26/08/2024 à 07:26, Ma Ke a écrit :
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: stable@xxxxxxxxxxxxxxx
Fixes: dec92020671c ("drm: Use the state pointer directly in planes atomic_check")

Signed-off-by: Ma Ke <make24@xxxxxxxxxxx>

Hi,

Tested-by: Raphaël Gallais-Pou <rgallaispou@xxxxxxxxx>

Regards,
Raphaël