summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ruley <[email protected]>2026-02-13 10:49:50 +0200
committerFabio Estevam <[email protected]>2026-02-28 15:31:49 -0300
commit670a20de08da8dd04b45c56ad69b440558cc99ee (patch)
tree46b4e04c867aacd67f925d322b7e5c1780533312
parentb93ef61ce4d0b3d46a4c30e107185e7b6e3d37eb (diff)
arch: imx: fix incorrect shutdown call for inactive video devices
Somehow I missed that ipuv3_fb_shutdown() can be called for inactive devices, resulting in invalid memory access and preventing the kernel from booting. Fixes: 32da6773f62 ("video: imx: ipuv3: refactor to use dm-managed state") Signed-off-by: Brian Ruley <[email protected]> Reviewed-by: David Zang <[email protected]>
-rw-r--r--arch/arm/mach-imx/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index 20c741283cd..8af45e14707 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -310,7 +310,8 @@ void arch_preboot_os(void)
/* disable video before launching O/S */
rc = uclass_find_first_device(UCLASS_VIDEO, &dev);
while (!rc && dev) {
- ipuv3_fb_shutdown(dev);
+ if (device_active(dev))
+ ipuv3_fb_shutdown(dev);
uclass_find_next_device(&dev);
}
#endif