mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
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>
This commit is contained in:
parent
cca05617a8
commit
544a76bac3
1 changed files with 1 additions and 1 deletions
|
@ -322,5 +322,5 @@ U_BOOT_DRIVER(apple_dart) = {
|
|||
.ops = &apple_dart_ops,
|
||||
.probe = apple_dart_probe,
|
||||
.remove = apple_dart_remove,
|
||||
.flags = DM_FLAG_OS_PREPARE
|
||||
.flags = DM_FLAG_OS_PREPARE | DM_FLAG_VITAL
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue