Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7424d88 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ion: fix system secure force alloc"

parents 54ddc2cd 0fa34f5d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -164,6 +164,9 @@ static struct page_info *alloc_from_pool_preferred(
	struct page_info *info;
	int i;

	if (buffer->flags & ION_FLAG_POOL_FORCE_ALLOC)
		goto force_alloc;

	info = kmalloc(sizeof(*info), GFP_KERNEL);
	if (!info)
		return ERR_PTR(-ENOMEM);
@@ -195,6 +198,7 @@ static struct page_info *alloc_from_pool_preferred(
	}

	kfree(info);
force_alloc:
	return alloc_largest_available(heap, buffer, size, max_order);
}