emmc: modify dtb malloc method [1/1]

PD#SWPL-3951

Problem:
buffer malloc for dtb may failed

Solution:
malloc may sleep to wait for enough memory

Verify:
pass on p212

Change-Id: Ib4c266c17140d2a6abf2aea6c02b2ff591f0fe08
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
This commit is contained in:
Ruixuan Li
2019-01-08 18:33:59 +08:00
committed by Luan Yuan
parent a745fd852b
commit 5cc4b46815

View File

@@ -274,7 +274,7 @@ int amlmmc_dtb_read(struct mmc_card *card,
memset(buf, 0x0, len);
start_blk = MMC_DTB_PART_OFFSET;
buffer = kmalloc(CONFIG_DTB_SIZE, GFP_KERNEL);
buffer = kmalloc(CONFIG_DTB_SIZE, GFP_KERNEL|__GFP_RECLAIM);
if (!buffer)
return -ENOMEM;