[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1545640882-42009-1-git-send-email-huang.zijiang@zte.com.cn>
Date: Mon, 24 Dec 2018 16:41:22 +0800
From: "huang.zijiang" <huang.zijiang@....com.cn>
To: akpm@...ux-foundation.org
Cc: rppt@...ux.vnet.ibm.com, mhocko@...e.com, sfr@...b.auug.org.au,
mpe@...erman.id.au, linux-kernel@...r.kernel.org,
xue.zhihong@....com.cn, wang.yi59@....com.cn,
"huang.zijiang" <huang.zijiang@....com.cn>
Subject: [PATCH] firmware/memmap:Modify memblock_alloc to memblock_alloc_nopanic
From: "huang.zijiang" <huang.zijiang@....com.cn>
memblock_alloc never returns NULL because panic never returns
Signed-off-by: huang.zijiang <huang.zijiang@....com.cn>
---
drivers/firmware/memmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/memmap.c b/drivers/firmware/memmap.c
index d168c87..ec4fd25 100644
--- a/drivers/firmware/memmap.c
+++ b/drivers/firmware/memmap.c
@@ -333,7 +333,7 @@ int __init firmware_map_add_early(u64 start, u64 end, const char *type)
{
struct firmware_map_entry *entry;
- entry = memblock_alloc(sizeof(struct firmware_map_entry),
+ entry = memblock_alloc_nopanic(sizeof(struct firmware_map_entry),
SMP_CACHE_BYTES);
if (WARN_ON(!entry))
return -ENOMEM;
--
1.8.3.1
Powered by blists - more mailing lists