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

2023-06-18 Thread 林睿祥
Hi Angelo, On Wed, 2023-06-14 at 10:43 +0200, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. Il 13/06/23 13:32, Jason-JH.Lin ha scritto: > Null-checking state suggests that it may be null, but

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

2023-06-14 Thread AngeloGioacchino Del Regno
Il 13/06/23 13:32, Jason-JH.Lin ha scritto: 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. Signed-of

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

2023-06-13 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. Signed-off-by: Jason-JH.Lin Fixes: 5ddb0bd4ddc3 ("drm/