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

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

Merge "ion: Ensure ion_buffer fields are initialized"

parents b4a080c6 a15a4042
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -109,8 +109,8 @@ static void process_one_prefetch(struct ion_heap *sys_heap,
	int ret;
	int vmid;

	memset(&buffer, 0, sizeof(struct ion_buffer));
	buffer.heap = sys_heap;
	buffer.flags = 0;

	ret = sys_heap->ops->allocate(sys_heap, &buffer, info->size,
					buffer.flags);
@@ -167,6 +167,7 @@ static void process_one_shrink(struct ion_heap *sys_heap,
	size_t pool_size, size;
	int ret;

	memset(&buffer, 0, sizeof(struct ion_buffer));
	buffer.heap = sys_heap;
	buffer.flags = info->vmid;