mm: fix dead loop if signal pending for cma alloc task [1/1]
authorTao Zeng <tao.zeng@amlogic.com>
Thu, 10 Jan 2019 02:35:14 +0000 (10:35 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 14 Jan 2019 02:28:15 +0000 (18:28 -0800)
commit6b2706f5847634d667b98aa48846344dea33e6bd
treebb7cd0795a342490dc6d7c66abf1262be3cb0569
parent39a61a2bdb8d865a3a4164a646853a078abef866
mm: fix dead loop if signal pending for cma alloc task [1/1]

PD#GH-17

Problem:
If a task be killed during CMA allocation, then it will abort
cma allocation in function compact_unlock_should_abort. But in
function aml_cma_alloc_range, it will return -EBUSY. Which cause
cma allocation loop won't exit and run again and again.

Solution:
return -EINT for this case to exit cma allocaion loop.

Verify:
newman platform

Change-Id: I6559bb184fc035ae68c8ccd001407767e1e22f0c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
drivers/amlogic/memory_ext/aml_cma.c