From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx147.postini.com [74.125.245.147]) by kanga.kvack.org (Postfix) with SMTP id 333F46B006C for ; Mon, 2 Jul 2012 07:05:08 -0400 (EDT) Received: by dakp5 with SMTP id p5so8876188dak.14 for ; Mon, 02 Jul 2012 04:05:07 -0700 (PDT) Date: Mon, 2 Jul 2012 04:05:04 -0700 (PDT) From: David Rientjes Subject: Re: [PATCH v3 3/3] mm/sparse: more check on mem_section number In-Reply-To: <1341221337-4826-3-git-send-email-shangw@linux.vnet.ibm.com> Message-ID: References: <1341221337-4826-1-git-send-email-shangw@linux.vnet.ibm.com> <1341221337-4826-3-git-send-email-shangw@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Gavin Shan Cc: linux-mm@kvack.org, dave@linux.vnet.ibm.com, mhocko@suse.cz, akpm@linux-foundation.org On Mon, 2 Jul 2012, Gavin Shan wrote: > Function __section_nr() was implemented to retrieve the corresponding > memory section number according to its descriptor. It's possible that > the specified memory section descriptor isn't existing in the global > array. So here to add more check on that and report error for wrong > case. > > Signed-off-by: Gavin Shan Acked-by: David Rientjes -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org