]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: android: ion: fix sys heap pool's gfp_flags
authorQing Xia <saberlily.xia@hisilicon.com>
Fri, 1 Feb 2019 06:59:46 +0000 (14:59 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit4af1e35607652f36da59b26934d7f9cbaa2b732a
tree556154c2216e4ee0d8a1fd8cf1a2a5cf6898b5f9
parent288ab4619c6c6ada62ae3fa728df56dd84d2670f
staging: android: ion: fix sys heap pool's gfp_flags

BugLink: https://bugs.launchpad.net/bugs/1837813
commit 9bcf065e28122588a6cbee08cf847826dacbb438 upstream.

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: e7f63771b60e ("ION: Sys_heap: Add cached pool to spead up cached buffer alloc")
Signed-off-by: Qing Xia <saberlily.xia@hisilicon.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Jing Xia <jing.xia@unisoc.com>
Reviewed-by: Yuming Han <yuming.han@unisoc.com>
Reviewed-by: Zhaoyang Huang <zhaoyang.huang@unisoc.com>
Reviewed-by: Orson Zhai <orson.zhai@unisoc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/staging/android/ion/ion_system_heap.c