Re: [PATCH RESEND] drm/stm: ltdc: fix late dereference check

2023-05-26 Thread Philippe CORNU
On 5/15/23 14:38, Raphael Gallais-Pou wrote: In ltdc_crtc_set_crc_source(), struct drm_crtc was dereferenced in a container_of() before the pointer check. This could cause a kernel panic. Fix this smatch warning: drivers/gpu/drm/stm/ltdc.c:1124 ltdc_crtc_set_crc_source() warn: variable derefe

Re: [PATCH RESEND] drm/stm: ltdc: fix late dereference check

2023-05-26 Thread Philippe CORNU
On 5/15/23 14:38, Raphael Gallais-Pou wrote: In ltdc_crtc_set_crc_source(), struct drm_crtc was dereferenced in a container_of() before the pointer check. This could cause a kernel panic. Fix this smatch warning: drivers/gpu/drm/stm/ltdc.c:1124 ltdc_crtc_set_crc_source() warn: variable deref