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

2023-07-13 Thread 胡俊光

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

2023-06-21 Thread Alexandre Mergnat
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.

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

2023-06-21 Thread Jason-JH . Lin
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. Fixes: 5ddb0bd4ddc3 ("drm/atomic: Pass the full state