From: Rebecca Schultz Zavin Date: Fri, 13 Dec 2013 22:24:38 +0000 (-0800) Subject: gpu: ion: Fix bug in ion shrinker X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da4aab37836b8e45e31c7d557c6d6a2c623d8eea;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git gpu: ion: Fix bug in ion shrinker The high variable was sometimes used uninitialized Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion_page_pool.c b/drivers/staging/android/ion/ion_page_pool.c index e59da3a5ed9f..df6e29c1854e 100644 --- a/drivers/staging/android/ion/ion_page_pool.c +++ b/drivers/staging/android/ion/ion_page_pool.c @@ -203,8 +203,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);