X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=blobdiff_plain;f=arch%2Fsparc%2Fkernel%2Fldc.c;h=59d5038664317d962a73ea2ee9d6133bb5d44904;hp=1ae5eb1bb045130f05c8edc4573dbcd75e00475f;hb=a2a43ccf6ff3802cf0e3e4abad9347083f14f7f5;hpb=acea568fa9eaeffbf949d15b2f7c9c346e16aae3 diff --git a/arch/sparc/kernel/ldc.c b/arch/sparc/kernel/ldc.c index 1ae5eb1bb045..59d503866431 100644 --- a/arch/sparc/kernel/ldc.c +++ b/arch/sparc/kernel/ldc.c @@ -1953,7 +1953,7 @@ static struct ldc_mtable_entry *alloc_npages(struct ldc_iommu *iommu, entry = iommu_tbl_range_alloc(NULL, &iommu->iommu_map_table, npages, NULL, (unsigned long)-1, 0); - if (unlikely(entry < 0)) + if (unlikely(entry == IOMMU_ERROR_CODE)) return NULL; return iommu->page_table + entry;