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

Commit 072c8531 authored by Rebecca Schultz Zavin's avatar Rebecca Schultz Zavin Committed by Mitchel Humpherys
Browse files

gpu: ion: Fix bug in ion shrinker



The high variable was sometimes used uninitialized

Change-Id: I2f51413fd2d063fdff325047e824dc8c749d9e0a
Signed-off-by: default avatarRebecca Schultz Zavin <rebecca@android.com>
Git-commit: 3ccc212f998895c3b46547504d1fefbe6080c7bf
Git-repo: https://android.googlesource.com/kernel/common


Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 07ca70b0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -205,8 +205,7 @@ static int ion_page_pool_shrink(struct shrinker *shrinker,
	bool high;
	int nr_to_scan = sc->nr_to_scan;

	if (sc->gfp_mask & __GFP_HIGHMEM)
		high = true;
	high = sc->gfp_mask & __GFP_HIGHMEM;

	if (nr_to_scan == 0)
		return ion_page_pool_total(high);