linux/drivers/net/tulip
Kyle McMartin 69145635d4 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 <kyle@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-18 18:49:01 -07:00
..
21142.c tulip: fix 21142 with 10Mbps without negotiation 2009-01-29 17:35:04 -08:00
de4x5.c de4x5: convert to net_device_ops 2009-01-07 18:00:31 -08:00
de4x5.h de4x5: Remove developer debug feature about set/clear promisc 2008-07-22 16:09:09 -04:00
de2104x.c de2104x: force correct order when writing to rx ring 2009-02-08 17:50:34 -08:00
dmfe.c dmfe: convert to new API 2009-01-07 18:01:20 -08:00
eeprom.c netdevice: safe convert to netdev_priv() #part-3 2008-11-12 23:38:36 -08:00
interrupt.c net: Remove unused netdev arg from some NAPI interfaces. 2008-12-22 20:43:12 -08:00
Kconfig remove the obsolete xircom_tulip_cb driver 2008-03-17 07:49:23 -04:00
Makefile remove the obsolete xircom_tulip_cb driver 2008-03-17 07:49:23 -04:00
media.c drivers/net/tulip: update first comment in tulip files 2008-06-24 22:59:26 -04:00
pnic2.c drivers/net/tulip: update first comment in tulip files 2008-06-24 22:59:26 -04:00
pnic.c drivers/net/tulip: update first comment in tulip files 2008-06-24 22:59:26 -04:00
timer.c drivers/net/tulip: update first comment in tulip files 2008-06-24 22:59:26 -04:00
tulip_core.c tulip: fix crash on iface up with shirq debug 2009-03-18 18:49:01 -07:00
tulip.h drivers/net/tulip: update first comment in tulip files 2008-06-24 22:59:26 -04:00
uli526x.c uli526x: convert devices to new API 2009-01-07 18:01:40 -08:00
winbond-840.c windbond: convert devices to new API 2009-01-07 18:02:26 -08:00
xircom_cb.c xircom: convert devices to new API 2009-01-07 18:00:55 -08:00