From d57bc275caf1432437172fe661f590446792c992 Mon Sep 17 00:00:00 2001 From: Rebecca Schultz Zavin Date: Wed, 24 Apr 2013 14:33:55 -0700 Subject: [PATCH] gpu: ion: Fix bug in ion shrinker The high variable was sometimes used uninitialized Change-Id: I2f51413fd2d063fdff325047e824dc8c749d9e0a Signed-off-by: Rebecca Schultz Zavin --- drivers/gpu/ion/ion_page_pool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/ion/ion_page_pool.c b/drivers/gpu/ion/ion_page_pool.c index cd57b30e875f..1658c9444b3a 100644 --- a/drivers/gpu/ion/ion_page_pool.c +++ b/drivers/gpu/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); -- 2.34.1