bianbu-linux-6.6/drivers/gpu/drm/stm
Raphael Gallais-Pou 898a9e3f56 drm/stm: ltdc: fix late dereference check
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 dereferenced before check 'crtc' (see line 1119)

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/lkml/202212241802.zeLFZCXB-lkp@intel.com/
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/lkml/202212241802.zeLFZCXB-lkp@intel.com/
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Acked-by: Philippe Cornu <philippe.cornu@foss.st.com>
Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230515123818.93971-1-raphael.gallais-pou@foss.st.com
2023-05-26 13:31:22 +02:00
..
drv.c drm/aperture: Remove primary argument 2023-04-16 14:17:41 +02:00
dw_mipi_dsi-stm.c drm/stm: dsi: Use devm_platform_ioremap_resource() 2023-05-26 12:07:34 +02:00
Kconfig drm: Drop ARCH_MULTIPLATFORM from dependencies 2023-03-14 12:57:22 +01:00
ltdc.c drm/stm: ltdc: fix late dereference check 2023-05-26 13:31:22 +02:00
ltdc.h drm/stm: ltdc: update hardware error management 2022-06-27 16:01:50 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00