ANDROID: drivers/iommu: Fix return value in iommu_map_sg
Probably due to a typo, iommu_map_sg() previously returned EINVAL
instead of -EINVAL under certain conditions.
Fixes: 1a608d2b0d ("BACKPORT: FROMLIST: drivers/iommu: Add deferred map_sg operations")
Change-Id: I1458104f6d9c570443014afffa115df98080d9d8
Signed-off-by: Daniel Mentz <danielmentz@google.com>
This commit is contained in:
committed by
Mostafa Saleh
parent
acad0cd51d
commit
61184996a8
@@ -2722,7 +2722,7 @@ next:
|
||||
consumed = ops->consume_deferred_map_sg(cookie_sg);
|
||||
if (consumed != mapped) {
|
||||
mapped = consumed;
|
||||
ret = EINVAL;
|
||||
ret = -EINVAL;
|
||||
goto out_err;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user