mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
iommu/rockchip: return -ENODEV when a disabled iommu node is referenced by master
When a disabled iommu node is referenced by a master which cause the previous iommu nodes removed from the iommu group, finally cause kernel crash, return -ENODEV instead -EPROBE_DEFER if iommu node disabled can fix this issue Change-Id: I3adf3f4119ff6fff0a2068301338813f5aca8969 Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
@@ -1105,7 +1105,7 @@ static int rk_iommu_group_set_iommudata(struct iommu_group *group,
|
||||
of_node_put(args.np);
|
||||
if (!pd) {
|
||||
dev_err(dev, "iommu %s not found\n", args.np->full_name);
|
||||
return -EPROBE_DEFER;
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* TODO(djkurtz): handle multiple slave iommus for a single master */
|
||||
|
||||
Reference in New Issue
Block a user