[PATCH v3 4/4] drm/mediatek: Fix dereference before null check
Alexandre Mergnat
amergnat at baylibre.com
Wed Jun 21 05:38:47 PDT 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 Linux-mediatek
mailing list