mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
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>
This commit is contained in:
parent
ccf5d23b1d
commit
3ccc212f99
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user