Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762283Ab3ECAHa (ORCPT ); Thu, 2 May 2013 20:07:30 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:42321 "EHLO e39.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932678Ab3ECABq (ORCPT ); Thu, 2 May 2013 20:01:46 -0400 From: Cody P Schafer To: Linux MM Cc: LKML , Cody P Schafer , Simon Jeons Subject: [RFC PATCH v3 27/31] mm/memory_hotplug: VM_BUG if nid is too large. Date: Thu, 2 May 2013 17:00:59 -0700 Message-Id: <1367539263-19999-28-git-send-email-cody@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.2.2 In-Reply-To: <1367539263-19999-1-git-send-email-cody@linux.vnet.ibm.com> References: <1367539263-19999-1-git-send-email-cody@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13050300-3620-0000-0000-0000024F5487 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 707 Lines: 26 Signed-off-by: Cody P Schafer --- mm/memory_hotplug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 8e6658d..320d914 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1071,6 +1071,8 @@ int __mem_online_node(int nid) pg_data_t *pgdat; int ret; + VM_BUG_ON(nid >= nr_node_ids); + pgdat = hotadd_new_pgdat(nid, 0); if (!pgdat) return -ENOMEM; -- 1.8.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/