Skip to content

Commit

Permalink
iommu: apple: Mark device as vital
Browse files Browse the repository at this point in the history
Avoids NULL pointer dereferences if the iommu device is removed before
its user. Observed on a M1 Ultra Mac Studio with uboot-v2024.10.

Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau committed Oct 28, 2024
1 parent df8e201 commit 4b6e0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/apple_dart.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,5 +314,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
};

0 comments on commit 4b6e0ff

Please sign in to comment.