From 4a80bbfb153ac970680a886db2a7d33173f79562 Mon Sep 17 00:00:00 2001 From: Ruixuan Li Date: Tue, 8 Jan 2019 18:33:59 +0800 Subject: [PATCH] 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 --- drivers/amlogic/mmc/emmc_partitions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/mmc/emmc_partitions.c b/drivers/amlogic/mmc/emmc_partitions.c index a2e406a..b2bf502 100644 --- a/drivers/amlogic/mmc/emmc_partitions.c +++ b/drivers/amlogic/mmc/emmc_partitions.c @@ -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; -- 2.7.4