Skip to content

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

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Rebecca Schultz Zavin authored and Greg Kroah-Hartman committed Dec 14, 2013
1 parent 57b5cd0 commit da4aab3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/android/ion/ion_page_pool.c
Original file line number Diff line number Diff line change
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 da4aab3

Please sign in to comment.