Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932691AbcLROsf (ORCPT ); Sun, 18 Dec 2016 09:48:35 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34004 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbcLROse (ORCPT ); Sun, 18 Dec 2016 09:48:34 -0500 From: Wei Yang To: trivial@kernel.org, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH V2 0/2] mm/memblock.c: fix potential bug and code refine Date: Sun, 18 Dec 2016 14:47:48 +0000 Message-Id: <1482072470-26151-1-git-send-email-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 684 Lines: 20 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