[PATCH v3 4/4] drm/mediatek: Fix dereference before null check

Alexandre Mergnat amergnat at baylibre.com
Wed Jun 21 12:38:47 UTC 2023



On 21/06/2023 12:22, Jason-JH.Lin wrote:
> Null-checking state suggests that it may be null, but it has already
> been dereferenced on drm_atomic_get_new_plane_state(state, plane).
> 
> The parameter state will never be NULL currently, so just remove the
> state is NULL flow in this function.

Reviewed-by: Alexandre Mergnat <amergnat at baylibre.com>

-- 
Regards,
Alexandre


More information about the dri-devel mailing list