]> git.dujemihanovic.xyz Git - u-boot.git/commit
iommu: apple: Mark device with DM_FLAG_VITAL
authorJanne Grunau <j@jannau.net>
Sat, 23 Nov 2024 21:44:04 +0000 (22:44 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 24 Nov 2024 21:41:28 +0000 (15:41 -0600)
commit544a76bac3393045e86a56cc5dfe2477e437c59b
tree3fc66d36b134469d47b48cd0d4d89ed7012527df
parentcca05617a8f585f3a98a8fa82f75cc68a530d771
iommu: apple: Mark device with DM_FLAG_VITAL

Avoids NULL pointer dereferences in apple_dart_unmap when the iommu
device is removed before its user. U-boot's device model does not track
dependencies between devices.
Observed on a M1 Ultra Mac Studio with v2024.10.

Acked-by: Mark Kettenis <kettenis@openbsd.org>
Signed-off-by: Janne Grunau <j@jannau.net>
drivers/iommu/apple_dart.c