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

Commit 2c11780b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ion: ion_system_heap: SetPagePrivate when splitting secure pages"

parents b80c3a0a 295721b3
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -204,11 +204,16 @@ static struct page *split_page_from_secure_pool(struct ion_system_heap *heap,
		split_page(page, order);
		break;
	}
	/* Return the remaining order-0 pages to the pool */
	if (page)
		for (j = 1; j < (1 << order); j++)
	/*
	 * Return the remaining order-0 pages to the pool.
	 * SetPagePrivate flag to mark memory as secure.
	 */
	if (page) {
		for (j = 1; j < (1 << order); j++) {
			SetPagePrivate(page + j);
			free_buffer_page(heap, buffer, page + j, 0);

		}
	}
got_page:
	mutex_unlock(&heap->split_page_mutex);