projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8202b6b
)
gpu: ion: Fix bug in ion shrinker
author
Rebecca Schultz Zavin
<rebecca@android.com>
Wed, 24 Apr 2013 21:33:55 +0000
(14:33 -0700)
committer
Arve Hjønnevåg
<arve@android.com>
Mon, 1 Jul 2013 21:16:25 +0000
(14:16 -0700)
The high variable was sometimes used uninitialized
Change-Id: I2f51413fd2d063fdff325047e824dc8c749d9e0a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion_page_pool.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/ion/ion_page_pool.c
b/drivers/gpu/ion/ion_page_pool.c
index cd57b30e875f87e431c842a1205db53c39948556..1658c9444b3afb861843e5336b43b6b618001f48 100644
(file)
--- 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);