aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2013-04-24 14:33:55 -0700
committerArve Hjønnevåg <arve@android.com>2013-04-29 14:51:34 -0700
commit39b2af70d2f8db03bfa73a6a1239b4d7bf2ebad7 (patch)
treeb713dccc97c1eed3d85f152de44cd91637315af4
parentc729569c40298f492cb4e753707aa9ddc4bf22a6 (diff)
downloadvexpress-lsk-39b2af70d2f8db03bfa73a6a1239b4d7bf2ebad7.tar.gz
gpu: ion: Fix bug in ion shrinker
The high variable was sometimes used uninitialized Change-Id: I2f51413fd2d063fdff325047e824dc8c749d9e0a Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
-rw-r--r--drivers/gpu/ion/ion_page_pool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/ion/ion_page_pool.c b/drivers/gpu/ion/ion_page_pool.c
index cd57b30e875..1658c9444b3 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);