From: Kyle McMartin Date: Thu, 19 Mar 2009 01:49:01 +0000 (-0700) Subject: tulip: fix crash on iface up with shirq debug X-Git-Tag: v2.6.29~3^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69145635d4db0a0382885b14634aa5b721f3aa1a;p=pandora-kernel.git tulip: fix crash on iface up with shirq debug Tulip is currently doing request_irq before it has done its initialization. This is usually not a problem because it hasn't enable interrupts yet, but with DEBUG_SHIRQ on, we call the irq handler when registering the interrupt as a sanity check. This can result in a NULL ptr dereference, so call tulip_init_ring before request_irq, and add a free_ring function to do the freeing now shared with tulip_close. Tested with a shell loop running ifup, ifdown in a loop a few hundred times with DEBUG_SHIRQ on. Signed-off-by: Kyle McMartin Signed-off-by: David S. Miller --- Reading git-diff-tree failed