mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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 <brian.ruley@gehealthcare.com>
Reviewed-by: David Zang <davidzangcs@gmail.com>
This commit is contained in:
committed by
Fabio Estevam
parent
b93ef61ce4
commit
670a20de08
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user