Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
gpu: ion: Fix bug in ion shrinker
Browse files Browse the repository at this point in the history
The high variable was sometimes used uninitialized

Change-Id: I2f51413fd2d063fdff325047e824dc8c749d9e0a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
  • Loading branch information
Rebecca Schultz Zavin authored and Rom Lemarchand committed May 28, 2013
1 parent d0e340d commit 85e4921
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/ion/ion_page_pool.c
Expand Up @@ -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);
Expand Down

0 comments on commit 85e4921

Please sign in to comment.