[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1482363033-24754-1-git-send-email-richard.weiyang@gmail.com>
Date: Wed, 21 Dec 2016 23:30:31 +0000
From: Wei Yang <richard.weiyang@...il.com>
To: trivial@...nel.org, akpm@...ux-foundation.org, mhocko@...nel.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Wei Yang <richard.weiyang@...il.com>
Subject: [PATCH V3 0/2] mm/memblock.c: fix potential bug and code refine
Here are two patch of mm/memblock.c.
[1]. A trivial code refine in memblock_is_region_memory(), which removes an
unnecessary check on base address.
[2]. The original code forgets to check the return value of
memblock_reserve(), which may lead to potential problem. The patch fix this.
---
v3:
* remove the check for base instead of comment out
* Reform the changelog
v2:
* remove a trivial code refine, which is already fixed in upstream
Wei Yang (2):
mm/memblock.c: trivial code refine in memblock_is_region_memory()
mm/memblock.c: check return value of memblock_reserve() in
memblock_virt_alloc_internal()
include/linux/memblock.h | 5 ++---
mm/memblock.c | 8 +++-----
2 files changed, 5 insertions(+), 8 deletions(-)
--
1.7.9.5
Powered by blists - more mailing lists