From: Rebecca Schultz Zavin Date: Wed, 24 Apr 2013 21:33:55 +0000 (-0700) Subject: gpu: ion: Fix bug in ion shrinker X-Git-Tag: firefly_0821_release~4090^2~582 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d57bc275caf1432437172fe661f590446792c992;p=firefly-linux-kernel-4.4.55.git gpu: ion: Fix bug in ion shrinker The high variable was sometimes used uninitialized Change-Id: I2f51413fd2d063fdff325047e824dc8c749d9e0a Signed-off-by: Rebecca Schultz Zavin --- 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);