From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH] Fix crash on boot in kmalloc_node IDE changes Date: Wed, 6 Jul 2005 18:45:34 +0200 Message-ID: <20050706164533.GK21330@wotan.suse.de> References: <20050706133052.GF21330@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from ns2.suse.de ([195.135.220.15]:21970 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S262375AbVGFQpk (ORCPT ); Wed, 6 Jul 2005 12:45:40 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Christoph Lameter Cc: Andi Kleen , linux-ide@vger.kernel.org, torvalds@osdl.org, linux-kernel@vger.kernel.org On Wed, Jul 06, 2005 at 09:34:28AM -0700, Christoph Lameter wrote: > On Wed, 6 Jul 2005, Andi Kleen wrote: > > > - q = blk_init_queue_node(do_ide_request, &ide_lock, > > - pcibus_to_node(drive->hwif->pci_dev->bus)); > > + int node = 0; /* Should be -1 */ > > Why is this not -1? Because there is no code in rc3 that handles -1 in kmalloc_node. If you add a patch that handles it then feel free to change. But fixing the bootup has the highest priority. > > > + int node = 0; > > + if (hwif->drives[0].hwif) { > > Also needs to be -1. Then it would crash again. -Andi