mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
gpu: ion: Fix bug in ion shrinker
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
57b5cd067f
commit
da4aab3783
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user