提交 9bcf065e 编写于 作者: Q Qing Xia 提交者: Greg Kroah-Hartman

staging: android: ion: fix sys heap pool's gfp_flags

In the first loop, gfp_flags will be modified to high_order_gfp_flags,
and there will be no chance to change back to low_order_gfp_flags.

Fixes: e7f63771 ("ION: Sys_heap: Add cached pool to spead up cached buffer alloc")
Signed-off-by: NQing Xia <saberlily.xia@hisilicon.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: NJing Xia <jing.xia@unisoc.com>
Reviewed-by: NYuming Han <yuming.han@unisoc.com>
Reviewed-by: NZhaoyang Huang <zhaoyang.huang@unisoc.com>
Reviewed-by: NOrson Zhai <orson.zhai@unisoc.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 419d6efc
...@@ -224,10 +224,10 @@ static void ion_system_heap_destroy_pools(struct ion_page_pool **pools) ...@@ -224,10 +224,10 @@ static void ion_system_heap_destroy_pools(struct ion_page_pool **pools)
static int ion_system_heap_create_pools(struct ion_page_pool **pools) static int ion_system_heap_create_pools(struct ion_page_pool **pools)
{ {
int i; int i;
gfp_t gfp_flags = low_order_gfp_flags;
for (i = 0; i < NUM_ORDERS; i++) { for (i = 0; i < NUM_ORDERS; i++) {
struct ion_page_pool *pool; struct ion_page_pool *pool;
gfp_t gfp_flags = low_order_gfp_flags;
if (orders[i] > 4) if (orders[i] > 4)
gfp_flags = high_order_gfp_flags; gfp_flags = high_order_gfp_flags;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册