All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] mm/memblock.c: fix potential bug and code refine
@ 2016-12-18 14:47 ` Wei Yang
  0 siblings, 0 replies; 32+ messages in thread
From: Wei Yang @ 2016-12-18 14:47 UTC (permalink / raw)
  To: trivial, akpm; +Cc: linux-mm, linux-kernel, Wei Yang

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.

---
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

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2016-12-21 14:52 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-18 14:47 [PATCH V2 0/2] mm/memblock.c: fix potential bug and code refine Wei Yang
2016-12-18 14:47 ` Wei Yang
2016-12-18 14:47 ` [PATCH V2 1/2] mm/memblock.c: trivial code refine in memblock_is_region_memory() Wei Yang
2016-12-18 14:47   ` Wei Yang
2016-12-19 15:15   ` Michal Hocko
2016-12-19 15:15     ` Michal Hocko
2016-12-20 16:35     ` Wei Yang
2016-12-20 16:35       ` Wei Yang
2016-12-21  7:48       ` Michal Hocko
2016-12-21  7:48         ` Michal Hocko
2016-12-21 12:43         ` Wei Yang
2016-12-21 12:43           ` Wei Yang
2016-12-21 12:48           ` Michal Hocko
2016-12-21 12:48             ` Michal Hocko
2016-12-21 13:15             ` Wei Yang
2016-12-21 13:15               ` Wei Yang
2016-12-18 14:47 ` [PATCH V2 2/2] mm/memblock.c: check return value of memblock_reserve() in memblock_virt_alloc_internal() Wei Yang
2016-12-18 14:47   ` Wei Yang
2016-12-19 15:21   ` Michal Hocko
2016-12-19 15:21     ` Michal Hocko
2016-12-20 16:48     ` Wei Yang
2016-12-20 16:48       ` Wei Yang
2016-12-21  7:51       ` Michal Hocko
2016-12-21  7:51         ` Michal Hocko
2016-12-21 13:13         ` Wei Yang
2016-12-21 13:13           ` Wei Yang
2016-12-21 13:22           ` Michal Hocko
2016-12-21 13:22             ` Michal Hocko
2016-12-21 14:39             ` Wei Yang
2016-12-21 14:39               ` Wei Yang
2016-12-21 14:52               ` Michal Hocko
2016-12-21 14:52                 ` Michal Hocko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.