android_kernel_xiaomi_sm8350/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
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
interrupt.c
Kconfig
Makefile
media.c
pnic2.c
pnic.c
timer.c
tulip_core.c tulip: fix crash on iface up with shirq debug 2009-03-18 18:49:01 -07:00
tulip.h
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