linux/drivers/net
Linus Torvalds 95b866d5af e1000e: Fix incorrect debug warning
Doing 'WARN_ON(preempt_count())' was horribly horribly wrong, and would
cause tons of warnings at bootup if PREEMPT was enabled because the
initcalls currently run with the kernel lock, which increments the
preempt count.

At the same time, the warning was also insufficient, since it didn't
check that interrupts were enabled.

The proper debug function to use for something that can sleep and wants
a warning if it's called in the wrong context is 'might_sleep()'.

Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-03 09:18:17 -07:00
..
appletalk
arcnet
arm
atl1e atl1e: multistatement if missing braces 2008-08-27 05:36:20 -04:00
atlx atl1: disable TSO by default 2008-08-27 05:36:27 -04:00
bonding
can
chelsio
cris
cxgb3
e1000 e1000: prevent corruption of EEPROM/NVM 2008-09-18 21:40:24 -04:00
e1000e e1000e: Fix incorrect debug warning 2008-10-03 09:18:17 -07:00
ehea
fs_enet fs_enet: Fix SCC Ethernet on CPM2, and crash in fs_enet_rx_napi() 2008-08-27 05:16:38 -04:00
hamradio
ibm_newemac ibm_newemac: Don't call dev_mc_add() before device is registered 2008-08-27 05:55:24 -04:00
igb igb: remove 82576 quad adapter 2008-08-27 05:36:12 -04:00
irda
ixgb
ixgbe ixgbe: initialize interrupt throttle rate 2008-09-03 09:26:18 -04:00
ixp2000
mlx4 IB/mlx4: Fix up fast register page list format 2008-09-15 14:25:23 -07:00
myri10ge Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2008-08-27 17:38:07 -07:00
netxen Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2008-09-03 16:21:02 -07:00
pcmcia pcnet-cs, axnet_cs: add new IDs, remove dup ID with less info 2008-09-03 09:26:37 -04:00
phy
sfc
skfp drivers/net/skfp/ess.c: fix compile warnings 2008-08-27 05:36:09 -04:00
tokenring
tulip
usb net/usb/pegasus: avoid hundreds of diagnostics 2008-09-03 09:26:10 -04:00
wan wan: Missing capability checks in sbni_ioctl() 2008-08-27 04:50:30 -07:00
wireless ath9k: disable MIB interrupts to fix interrupt storm 2008-09-24 15:55:24 -04:00
3c59x.c
3c501.c
3c501.h
3c503.c
3c503.h
3c505.c
3c505.h
3c507.c
3c509.c
3c515.c
3c523.c
3c523.h
3c527.c
3c527.h
7990.c
7990.h
8139cp.c
8139too.c
8390.c
8390.h
8390p.c
82596.c
a2065.c
a2065.h
ac3200.c
acenic_firmware.h
acenic.c
acenic.h
amd8111e.c
amd8111e.h
apne.c
ariadne.c
ariadne.h
at1700.c
atarilance.c
atp.c
atp.h
au1000_eth.c
au1000_eth.h
ax88796.c
b44.c
b44.h
bfin_mac.c
bfin_mac.h
bmac.c
bmac.h
bnx2_fw2.h
bnx2_fw.h
bnx2.c
bnx2.h bnx2: Promote vector field in bnx2_irq structure from u16 to unsigned int 2008-09-18 16:46:11 -07:00
bnx2x_fw_defs.h
bnx2x_hsi.h
bnx2x_init_values.h
bnx2x_init.h
bnx2x_link.c
bnx2x_link.h
bnx2x_main.c bnx2x: Accessing un-mapped page 2008-09-03 14:38:00 -07:00
bnx2x_reg.h
bnx2x.h bnx2x: Accessing un-mapped page 2008-09-03 14:38:00 -07:00
bsd_comp.c
cassini.c
cassini.h
cpmac.c
cs89x0.c
cs89x0.h
de600.c
de600.h
de620.c
de620.h
declance.c
defxx.c
defxx.h
depca.c
depca.h
dl2k.c
dl2k.h
dm9000.c
dm9000.h
dummy.c
e100.c e100: Use pci_pme_active to clear PME_Status and disable PME# 2008-09-18 21:42:50 -04:00
e2100.c
eepro100.c
eepro.c
eexpress.c
eexpress.h
enc28j60_hw.h
enc28j60.c
epic100.c
eql.c
es3210.c
eth16i.c
ewrk3.c
ewrk3.h
fealnx.c
fec_mpc52xx_phy.c
fec_mpc52xx.c
fec_mpc52xx.h
fec.c
fec.h
forcedeth.c forcedeth: call restore mac addr in nv_shutdown path 2008-09-18 21:38:44 -04:00
gianfar_ethtool.c
gianfar_mii.c
gianfar_mii.h
gianfar_sysfs.c
gianfar.c net: don't grab a mutex within a timer context in gianfar 2008-08-27 05:55:19 -04:00
gianfar.h net: don't grab a mutex within a timer context in gianfar 2008-08-27 05:55:19 -04:00
hamachi.c
hp100.c
hp100.h
hp-plus.c hpplus: fix build regression 2008-09-16 19:35:05 -07:00
hp.c
hplance.c
hplance.h
hydra.c
ibmlana.c
ibmlana.h
ibmveth.c ibmveth: fix bad UDP checksums 2008-08-27 05:36:57 -04:00
ibmveth.h
ifb.c
ioc3-eth.c
ipg.c
ipg.h
isa-skeleton.c
iseries_veth.c
jazzsonic.c
Kconfig Blackfin EMAC Driver: the BF526 also supports the MAC, 2008-08-27 05:14:14 -04:00
korina.c
lance.c
lasi_82596.c
lib8390.c
lib82596.c
LICENSE.SRC
lne390.c
loopback.c
lp486e.c
mac89x0.c
mac8390.c
macb.c
macb.h
mace.c
mace.h
macmace.c
macsonic.c
macvlan.c
Makefile
meth.c
meth.h
mii.c
mipsnet.c
mv643xx_eth.c
mvme147.c
myri_code.h
myri_sbus.c
myri_sbus.h
natsemi.c
ne2.c
ne2k-pci.c
ne3210.c
ne-h8300.c
ne.c
netconsole.c
netx-eth.c
ni52.c
ni52.h
ni65.c
ni65.h
ni5010.c
ni5010.h
niu.c niu: panic on reset 2008-09-12 16:04:26 -07:00
niu.h
ns83820.c
pasemi_mac_ethtool.c
pasemi_mac.c
pasemi_mac.h
pci-skeleton.c
pcnet32.c
plip.c
ppp_async.c
ppp_deflate.c
ppp_generic.c
ppp_mppe.c
ppp_mppe.h
ppp_synctty.c
pppoe.c
pppol2tp.c
pppox.c
ps3_gelic_net.c
ps3_gelic_net.h
ps3_gelic_wireless.c
ps3_gelic_wireless.h
qla3xxx.c
qla3xxx.h
r6040.c
r8169.c r8169: balance pci_map / pci_unmap pair 2008-08-27 05:16:24 -04:00
rionet.c
rrunner.c
rrunner.h
s2io-regs.h
s2io.c
s2io.h
sb1000.c
sb1250-mac.c
sc92031.c
seeq8005.c
seeq8005.h
sgiseeq.c
sgiseeq.h
sh_eth.c
sh_eth.h
sis190.c
sis900.c
sis900.h
skge.c
skge.h
sky2.c
sky2.h
slhc.c
slip.c
slip.h
smc91x.c [netdrvr] smc91x: fix resource removal (null ptr deref) 2008-08-27 05:54:30 -04:00
smc91x.h
smc911x.c
smc911x.h
smc9194.c
smc9194.h
smc-mca.c
smc-ultra32.c
smc-ultra.c
sni_82596.c
sonic.c
sonic.h
Space.c
spider_net_ethtool.c
spider_net.c
spider_net.h
starfire_firmware.h
starfire_firmware.pl
starfire.c
stnic.c
sun3_82586.c
sun3_82586.h
sun3lance.c
sunbmac.c
sunbmac.h
sundance.c
sungem_phy.c
sungem_phy.h
sungem.c
sungem.h
sunhme.c
sunhme.h
sunlance.c
sunqe.c
sunqe.h
sunvnet.c
sunvnet.h
tc35815.c
tehuti_fw.h
tehuti.c
tehuti.h
tg3.c
tg3.h
tlan.c
tlan.h
tsi108_eth.c
tsi108_eth.h
tun.c
typhoon-firmware.h
typhoon.c
typhoon.h
ucc_geth_ethtool.c
ucc_geth_mii.c
ucc_geth_mii.h
ucc_geth.c
ucc_geth.h
veth.c
via-rhine.c
via-velocity.c
via-velocity.h
virtio_net.c
wd.c [netdrvr] fix build issue: undefined reference to `NS8390p_init' 2008-08-27 05:17:46 -04:00
xen-netfront.c
yellowfin.c
znet.c
zorro8390.c