Loading drivers/gpu/msm/kgsl_iommu.c +1 −1 Original line number Diff line number Diff line Loading @@ -1710,7 +1710,7 @@ static uint64_t _get_unmapped_area_topdown(struct kgsl_pagetable *pagetable, } /* If we get here then there are no more entries in the region */ if (((end - size) & mask) >= bottom) if ((end > size) && (((end - size) & mask) >= bottom)) return (end - size) & mask; return (uint64_t) -ENOMEM; Loading Loading
drivers/gpu/msm/kgsl_iommu.c +1 −1 Original line number Diff line number Diff line Loading @@ -1710,7 +1710,7 @@ static uint64_t _get_unmapped_area_topdown(struct kgsl_pagetable *pagetable, } /* If we get here then there are no more entries in the region */ if (((end - size) & mask) >= bottom) if ((end > size) && (((end - size) & mask) >= bottom)) return (end - size) & mask; return (uint64_t) -ENOMEM; Loading