Thread (24 messages) 24 messages, 5 authors, 2005-07-08

Re: [another PATCH] Fix crash on boot in kmalloc_node IDE changes

From: Andi Kleen <hidden>
Date: 2005-07-07 17:01:14
Also in: lkml

On Thu, Jul 07, 2005 at 09:32:51AM -0700, Christoph Lameter wrote:
On Thu, 7 Jul 2005, Andi Kleen wrote:
quoted
On Thu, Jul 07, 2005 at 09:21:55AM -0700, Christoph Lameter wrote:
quoted
On Wed, 6 Jul 2005, Andi Kleen wrote:
quoted
Without this patch a dual Xeon EM64T machine would oops on boot
because the hwif pointer here was NULL. I also added a check for
pci_dev because it's doubtful that all IDE devices have pci_devs.
Here is IMHO the right way to fix this. Test for the hwif != NULL and
test for pci_dev != NULL before determining the node number of the pci 
bus that the device is connected to. Maybe we need a hwif_to_node for ide 
drivers that is also able to determine the locality of other hardware?
Hmm? Where is the difference? 
node = -1 if the node cannot be determined.
But that will crash right now.

Trading one crash for another doesn't seem to be particularly useful.

quoted
This is 100% equivalent to my code except that you compressed
it all into a single expression.
My patch consistently checks for hwif != NULL and pci_dev != NULL. 
There was someother stuff in your patch. This patch does not add any 
additional variables and is more readable.
No it was exactly the same except for a working node number.

-Andi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help