kernel_optimize_test/drivers/net
Anton Vorontsov dfd9a421be fs_enet: check for phydev existence in the ethtool handlers
Otherwise oops will happen if ethernet device has not been opened:

Unable to handle kernel paging request for data at address 0x0000014c
Faulting instruction address: 0xc016f7f0
Oops: Kernel access of bad area, sig: 11 [#1]
MPC85xx
NIP: c016f7f0 LR: c01722a0 CTR: 00000000
REGS: c79ddc70 TRAP: 0300   Not tainted  (2.6.24-rc3-g820a386b)
MSR: 00029000 <EE,ME>  CR: 20004428  XER: 20000000
DEAR: 0000014c, ESR: 00000000
TASK = c789f5e0[999] 'snmpd' THREAD: c79dc000
GPR00: c01aceb8 c79ddd20 c789f5e0 00000000 c79ddd3c 00000000 c79ddd64 00000000
GPR08: 00000000 c7845b60 c79dde3c c01ace80 20004422 200249fc 000002a0 100da728
GPR16: 100c0000 00000000 00000000 00000000 20022078 00000009 200220e0 bfc85558
GPR24: c79ddd3c 00000000 00000000 c02e0e70 c022fc64 ffffffff c7845800 bfc85498
NIP [c016f7f0] phy_ethtool_gset+0x0/0x4c
LR [c01722a0] fs_get_settings+0x18/0x28
Call Trace:
[c79ddd20] [c79dde38] 0xc79dde38 (unreliable)
[c79ddd30] [c01aceb8] dev_ethtool+0x294/0x11ec
[c79dde30] [c01aaa44] dev_ioctl+0x454/0x6a8
[c79ddeb0] [c019b9d4] sock_ioctl+0x84/0x230
[c79dded0] [c007ded8] do_ioctl+0x34/0x8c
[c79ddee0] [c007dfbc] vfs_ioctl+0x8c/0x41c
[c79ddf10] [c007e38c] sys_ioctl+0x40/0x74
[c79ddf40] [c000d4c0] ret_from_syscall+0x0/0x3c
Instruction dump:
81630000 800b0030 2f800000 419e0010 7c0803a6 4e800021 7c691b78 80010014
7d234b78 38210010 7c0803a6 4e800020 <8003014c> 7c6b1b78 38600000 90040004

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Vitaly Bordug <vitb@kernel.crashing.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2008-01-12 17:45:33 -05:00
..
appletalk
arcnet [NET]: Remove references to net-modules.txt. 2007-11-12 21:03:58 -08:00
arm [EP93xx_ETH]: Build fix after 2.6.24 NAPI changes. 2007-11-13 20:46:09 -08:00
atl1 network drivers: sparse warning fixes 2007-10-10 16:55:27 -07:00
bonding bonding: Fix race at module unload 2007-12-07 15:00:34 -05:00
chelsio cxgb - revert file mode changes. 2007-12-04 14:52:58 -05:00
cris CRISv10 Ethernet declare mac fix 2007-11-14 18:45:47 -08:00
cxgb3 cxgb3 - T3C support update 2007-12-07 15:00:36 -05:00
e1000 [NET]: Make ->poll() breakout consistent in Intel ethernet drivers. 2008-01-08 23:30:14 -08:00
e1000e [NET]: Make ->poll() breakout consistent in Intel ethernet drivers. 2008-01-08 23:30:14 -08:00
ehea ehea: Reworked rcv queue handling to log only fatal errors 2007-11-23 22:09:01 -05:00
fec_8xx [NET]: Do not check netif_running() and carrier state in ->poll() 2008-01-08 23:30:09 -08:00
fs_enet fs_enet: check for phydev existence in the ethtool handlers 2008-01-12 17:45:33 -05:00
hamradio [TTY]: Use tty_mode_ioctl() in network drivers. 2007-11-07 04:14:24 -08:00
ibm_emac Add dcr_host_t.base in dcr_read()/dcr_write() 2007-10-15 14:29:49 -04:00
ibm_newemac Net: ibm_newemac, remove SPIN_LOCK_UNLOCKED 2007-12-14 16:12:45 -05:00
irda [IRDA]: stir4200 fixes. 2007-12-16 14:09:44 -08:00
ixgb [NET]: Make ->poll() breakout consistent in Intel ethernet drivers. 2008-01-08 23:30:14 -08:00
ixgbe [NET]: Make ->poll() breakout consistent in Intel ethernet drivers. 2008-01-08 23:30:14 -08:00
ixp2000 [NET]: Do not check netif_running() and carrier state in ->poll() 2008-01-08 23:30:09 -08:00
mlx4 mlx4_core: Fix state check in mlx4_qp_modify() 2007-11-20 13:01:28 -08:00
myri10ge [NET]: Do not check netif_running() and carrier state in ->poll() 2008-01-08 23:30:09 -08:00
netxen netxen: fix byte-swapping in tx and rx 2008-01-12 17:35:38 -05:00
pcmcia 3c574 and 3c589 endianness fixes (.24?) 2007-12-22 22:53:07 -05:00
phy PHY: Add the phy_device_release device method. 2007-12-04 15:06:33 -05:00
sk98lin
skfp
tokenring 3c359 endianness annotations and fixes 2007-12-22 23:16:42 -05:00
tulip endianness noise in tulip_core 2008-01-12 17:33:04 -05:00
usb [usb netdev] asix: fix regression 2008-01-12 17:43:19 -05:00
wan cycx: annotations and fixes (.24 fodder?) 2007-12-22 22:53:06 -05:00
wireless Merge branch 'fixes-jgarzik' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream-fixes 2008-01-12 17:44:35 -05:00
3c59x.c vortex_up should initialize "err" 2007-10-17 20:23:30 -04:00
3c501.c
3c501.h
3c503.c
3c503.h
3c505.c
3c505.h
3c507.c
3c509.c 3c509: PnP resource management fix 2008-01-12 17:41:04 -05:00
3c515.c
3c523.c
3c523.h
3c527.c
3c527.h
7990.c
7990.h
8139cp.c
8139too.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
8390.c
8390.h
82596.c 82596: free nonexistent resource fix 2007-11-05 17:57:30 -05:00
a2065.c
a2065.h
ac3200.c
acenic_firmware.h
acenic.c network drivers: sparse warning fixes 2007-10-10 16:55:27 -07:00
acenic.h
amd8111e.c amd8111e: don't call napi_enable if configured w/o NAPI 2007-11-23 22:09:00 -05:00
amd8111e.h
apne.c
ariadne.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
ariadne.h Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
at1700.c
atarilance.c fallout from DECLARE_MAC_BUF patches 2007-10-13 09:58:59 -07:00
atp.c
atp.h
au1000_eth.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
au1000_eth.h
ax88796.c Add missing newlines to some uses of dev_<level> messages 2007-10-18 14:37:28 -07:00
b44.c
b44.h
bfin_mac.c Merge branch 'master' into upstream-fixes 2007-12-01 16:18:56 -05:00
bfin_mac.h Blackfin arch: change get_bf537_ether_addr() to bfin_get_ether_addr() since this is not BF537 specific and to better match other Blackfin-specific conventions 2007-11-15 21:21:20 +08:00
bmac.c
bmac.h
bnx2_fw2.h [BNX2]: Update 5709 firmware to 3.7.1. 2007-10-17 19:25:27 -07:00
bnx2_fw.h
bnx2.c [BNX2]: Update version to 1.6.9. 2007-12-11 02:45:31 -08:00
bnx2.h [BNX2]: Fix RX packet rot. 2007-12-11 02:45:30 -08:00
bsd_comp.c
cassini.c [CASSINI]: Bump driver version and release date. 2008-01-04 03:55:30 -08:00
cassini.h [CASSINI]: Fix endianness bug. 2008-01-04 00:47:04 -08:00
cpmac.c cpmac: update to new fixed phy driver interface 2007-10-25 03:31:15 -04:00
cs89x0.c
cs89x0.h
de600.c
de600.h
de620.c
de620.h
declance.c
defxx.c defxx.c: dfx_bus_init() is __devexit not __devinit 2007-10-23 20:18:13 -04:00
defxx.h
depca.c
depca.h
dl2k.c dl2k endianness fixes (.24 fodder?) 2007-12-22 22:53:06 -05:00
dl2k.h dl2k endianness fixes (.24 fodder?) 2007-12-22 22:53:06 -05:00
dm9000.c DM9000 initialization fix 2007-10-19 23:00:01 -04:00
dm9000.h
dummy.c
e100.c [NET]: Make ->poll() breakout consistent in Intel ethernet drivers. 2008-01-08 23:30:14 -08:00
e2100.c
eepro100.c
eepro.c
eexpress.c eexpress: fix !SMP unused-var warning 2007-10-23 21:28:39 -04:00
eexpress.h
epic100.c [NET]: Do not check netif_running() and carrier state in ->poll() 2008-01-08 23:30:09 -08:00
eql.c
es3210.c
eth16i.c define global BIT macro 2007-10-19 11:53:42 -07:00
ewrk3.c
ewrk3.h
fealnx.c Remove long-dead commented-out MODULE_PARM reference. 2007-10-19 23:12:43 +02:00
fec_mpc52xx_phy.c FEC - fast ethernet controller for mpc52xx 2007-10-29 05:59:10 -04:00
fec_mpc52xx.c fec_mpc52xx: write in C... 2007-12-22 22:53:07 -05:00
fec_mpc52xx.h FEC - fast ethernet controller for mpc52xx 2007-10-29 05:59:10 -04:00
fec.c m68knommu: improve mii_do_cmd code in FEC driver 2007-10-23 08:32:34 -07:00
fec.h
forcedeth.c [FORCEDETH]: Fix reversing the MAC address on suspend. 2008-01-08 23:30:20 -08:00
gianfar_ethtool.c
gianfar_mii.c
gianfar_mii.h
gianfar_sysfs.c
gianfar.c gianfar: fix compile warning 2007-12-04 15:06:11 -05:00
gianfar.h gianfar: remove orphan struct. 2007-10-17 20:11:28 -04:00
hamachi.c hamachi endianness fixes 2007-12-14 15:26:15 -05:00
hp100.c [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
hp100.h
hp-plus.c
hp.c
hplance.c
hplance.h
hydra.c
ibmlana.c
ibmlana.h
ibmveth.c kobjects: fix up improper use of the kobject name field 2007-10-12 14:51:02 -07:00
ibmveth.h
ifb.c
ioc3-eth.c
ipg.c drivers/net/ipg.c: cleanups 2007-10-25 03:31:13 -04:00
ipg.h drivers/net/ipg.c: cleanups 2007-10-25 03:31:13 -04:00
isa-skeleton.c
iseries_veth.c
jazzsonic.c Jazzsonic: Fix warning about unused variable. 2007-10-15 14:29:49 -04:00
Kconfig ip1000: menu location change 2008-01-12 17:41:04 -05:00
lance.c
lasi_82596.c
lib8390.c
lib82596.c LIB82596: correct data types for hardware addresses 2007-12-01 16:38:28 -05:00
LICENSE.SRC
lne390.c
loopback.c Fixed a small typo in the loopback driver 2008-01-12 17:41:04 -05:00
lp486e.c
mac89x0.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
mac8390.c
macb.c MACB: clear transmit buffers properly on transmit underrun 2007-12-22 23:26:51 -05:00
macb.h
mace.c
mace.h
macmace.c m68k: fix net drivers after recent get_stats updates 2007-10-13 09:41:03 -07:00
macsonic.c
macvlan.c remove duplicate initializer (macvlan) 2007-10-14 12:41:51 -07:00
Makefile FEC - fast ethernet controller for mpc52xx 2007-10-29 05:59:10 -04:00
meth.c [METH]: Fix MAC address handling. 2008-01-08 23:30:00 -08:00
meth.h define global BIT macro 2007-10-19 11:53:42 -07:00
mii.c
mipsnet.c MIPSnet: Delete all the useless debugging printks. 2007-10-23 20:18:13 -04:00
mipsnet.h MIPSsim: General cleanup 2007-10-15 14:29:49 -04:00
mv643xx_eth.c Merge branch 'features' of git://farnsworth.org/dale/linux-2.6-mv643xx_eth into upstream 2007-10-23 20:15:54 -04:00
mvme147.c m68k: fix net drivers after recent get_stats updates 2007-10-13 09:41:03 -07:00
myri_code.h
myri_sbus.c [MYRI_SBUS]: Prevent that myri_do_handshake lies about ticks. 2007-11-13 03:16:17 -08:00
myri_sbus.h
natsemi.c [NET]: Do not check netif_running() and carrier state in ->poll() 2008-01-08 23:30:09 -08:00
ne2.c
ne2k-pci.c
ne3210.c
ne-h8300.c netdev: convert non-obvious instances to use ARRAY_SIZE() 2007-10-15 15:57:38 -04:00
ne.c
netconsole.c
netx-eth.c [NET]: Fix netx-eth.c compilation. 2008-01-08 23:29:59 -08:00
ni52.c
ni52.h
ni65.c long vs. unsigned long - low-hanging fruits in drivers 2007-10-14 12:41:51 -07:00
ni65.h
ni5010.c ni5010: kill unused variable 2007-10-23 21:28:40 -04:00
ni5010.h
niu.c [NIU]: Update driver version and release date. 2008-01-08 23:29:56 -08:00
niu.h [NIU]: Add Sun Neptune ethernet driver. 2007-10-10 16:54:38 -07:00
ns83820.c
pasemi_mac.c pasemi_mac: Fix reuse of free'd skb 2007-12-04 14:53:49 -05:00
pasemi_mac.h pasemi_mac: enable iommu support 2007-10-10 16:54:30 -07:00
pci-skeleton.c
pcnet32.c [NET]: Fix drivers to handle napi_disable() disabling interrupts. 2008-01-08 23:30:12 -08:00
plip.c plip: fix parport_register_device name parameter 2007-11-26 19:39:01 -08:00
ppp_async.c [PPP]: Remove ptr comparisons to 0 2007-11-12 18:07:31 -08:00
ppp_deflate.c
ppp_generic.c [PPP]: Remove ptr comparisons to 0 2007-11-12 18:07:31 -08:00
ppp_mppe.c [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
ppp_mppe.h
ppp_synctty.c [PPP]: Remove ptr comparisons to 0 2007-11-12 18:07:31 -08:00
pppoe.c [NET]: Forget the zero_it argument of sk_alloc() 2007-11-01 00:39:31 -07:00
pppol2tp.c [PPP]: L2TP: Fix oops in transmit and receive paths 2007-11-07 04:08:56 -08:00
pppox.c
ps3_gelic_net.c
ps3_gelic_net.h
qla3xxx.c [NET]: Do not check netif_running() and carrier state in ->poll() 2008-01-08 23:30:09 -08:00
qla3xxx.h qla3xxx: bugfix: Move link state machine into a worker thread 2007-11-10 04:25:15 -05:00
r8169.c r8169: fix missing loop variable increment 2008-01-12 17:41:04 -05:00
rionet.c
rrunner.c rrunner: use offsetof() instead of homegrown insanity 2007-12-22 22:53:07 -05:00
rrunner.h rrunner: use offsetof() instead of homegrown insanity 2007-12-22 22:53:07 -05:00
s2io-regs.h S2io: Check for register initialization completion before accesing device registers 2007-12-07 15:09:06 -05:00
s2io.c [NET]: Do not check netif_running() and carrier state in ->poll() 2008-01-08 23:30:09 -08:00
s2io.h s2io, rename BIT macro 2007-10-19 11:53:42 -07:00
saa9730.c SAA9730: Fix build 2007-10-15 14:29:48 -04:00
saa9730.h
sb1000.c
sb1250-mac.c
sc92031.c
seeq8005.c
seeq8005.h
sgiseeq.c
sgiseeq.h
shaper.c
sis190.c sis190 endianness 2007-12-17 16:02:28 -05:00
sis900.c
sis900.h
skge.c skge: MTU changing fix 2007-12-01 16:32:30 -05:00
skge.h skge: add a debug interface 2007-10-16 21:10:29 -04:00
sky2.c [NET]: Fix drivers to handle napi_disable() disabling interrupts. 2008-01-08 23:30:12 -08:00
sky2.h sky2: revert to access PCI config via device space 2007-12-01 16:32:31 -05:00
slhc.c
slip.c [TTY]: Use tty_mode_ioctl() in network drivers. 2007-11-07 04:14:24 -08:00
slip.h
smc91x.c [NET] smc91x: fix PXA DMA support code 2007-10-15 18:53:37 +01:00
smc91x.h Blackfin SMC91x Driver: punt CONFIG_BFIN -- we already have CONFIG_BLACKFIN 2007-11-23 22:09:02 -05:00
smc911x.c SMC911X: Fix using of dereferenced skb after netif_rx 2007-12-04 14:53:43 -05:00
smc911x.h net: smc911x: shut up compiler warnings 2007-12-14 16:12:42 -05:00
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 Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
spider_net.h Make the pr_*() family of macros in kernel.h complete 2007-10-17 08:42:57 -07:00
starfire_firmware.h
starfire_firmware.pl
starfire.c starfire VLAN fix 2007-12-14 15:26:04 -05:00
stnic.c
sun3_82586.c
sun3_82586.h
sun3lance.c
sunbmac.c
sunbmac.h
sundance.c sundance fixes 2007-12-14 15:26:00 -05:00
sungem_phy.c
sungem_phy.h
sungem.c [SUNGEM]: Fix NAPI regression with reset work 2007-11-29 21:51:36 +11:00
sungem.h
sunhme.c [SUNHME]: VLAN support for sunhme 2007-11-15 15:38:45 -08:00
sunhme.h
sunlance.c
sunqe.c
sunqe.h
sunvnet.c
sunvnet.h
tc35815.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
tehuti_fw.h
tehuti.c [TEHUTI]: Fix incorrect usage of strncat in bdx_get_drvinfo() 2007-11-13 03:17:16 -08:00
tehuti.h
tg3.c [TG3]: Endianness bugfix. 2007-12-19 16:43:48 -08:00
tg3.h [TG3]: Add A1 revs 2007-11-12 21:22:02 -08:00
tlan.c
tlan.h
tsi108_eth.c Fix build break in tsi108.c 2007-10-19 23:00:03 -04:00
tsi108_eth.h
tun.c [TUNTAP]: Fix wrong debug message. 2007-12-26 19:36:34 -08:00
typhoon-firmware.h
typhoon.c typhoon: trivial endianness annotations 2007-12-22 22:53:06 -05:00
typhoon.h typhoon: trivial endianness annotations 2007-12-22 22:53:06 -05:00
ucc_geth_ethtool.c
ucc_geth_mii.c
ucc_geth_mii.h ucc_geth: really fix section mismatch 2007-12-17 16:02:20 -05:00
ucc_geth.c ucc_geth: minor whitespace fix 2007-12-14 16:12:38 -05:00
ucc_geth.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2007-10-11 21:55:47 -07:00
veth.c [VETH]: move veth.h to include/linux 2007-12-26 19:36:35 -08:00
via-rhine.c
via-velocity.c via-velocity: don't oops on MTU change (resend) 2007-12-01 16:35:51 -05:00
via-velocity.h
virtio_net.c virtio: fix net driver loop case where we fail to restart 2007-11-19 11:20:44 +11:00
wd.c
xen-netfront.c [NET]: Do not check netif_running() and carrier state in ->poll() 2008-01-08 23:30:09 -08:00
yellowfin.c yellowfin: annotations and fixes (.24 fodder?) 2007-12-22 22:53:06 -05:00
znet.c
zorro8390.c