linux_dsm_epyc7002/drivers/net
Ivan Vecera 37dd348270 bna: fix crash in bnad_get_strings()
Commit 6e7333d "net: add rx_nohandler stat counter" added the new entry
rx_nohandler into struct rtnl_link_stats64. Unfortunately the bna
driver foolishly depends on the structure. It uses part of it for
ethtool statistics and it's not bad but the driver assumes its size
is constant as it defines string for each existing entry. The problem
occurs when the structure is extended because you need to modify bna
driver as well. If not any attempt to retrieve ethtool statistics results
in crash in bnad_get_strings().
The patch changes BNAD_ETHTOOL_STATS_NUM so it counts real number of
strings in the array and also removes rtnl_link_stats64 entries that
are not used in output and are always zero.

Fixes: 6e7333d "net: add rx_nohandler stat counter"
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-09-17 10:18:02 -04:00
..
appletalk
arcnet
bonding bonding: Fix bonding crash 2016-09-04 11:41:12 -07:00
caif
can
cris
dsa net: dsa: bcm_sf2: Fix race condition while unmasking interrupts 2016-08-25 16:49:25 -07:00
ethernet bna: fix crash in bnad_get_strings() 2016-09-17 10:18:02 -04:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipvlan
irda
phy drivers: net: phy: xgene: Fix 'remove' function 2016-09-13 12:04:11 -04:00
plip
ppp
slip
team team: loadbalance: push lacpdus to exact delivery 2016-08-26 13:08:59 -07:00
usb kaweth: fix oops upon failed memory allocation 2016-08-18 23:25:33 -07:00
vmxnet3 vmxnet3: fix tx data ring copy for variable size 2016-08-19 22:44:22 -07:00
wan
wimax
wireless Merge ath-current from ath.git 2016-09-07 20:16:37 +03:00
xen-netback xen-netback: fix error handling on netback_probe() 2016-09-17 09:56:02 -04:00
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tun: fix transmit timestamp support 2016-08-23 23:09:27 -07:00
veth.c
virtio_net.c
vrf.c
vxlan.c vxlan: fix duplicated and wrong error messages 2016-09-04 11:42:56 -07:00
xen-netfront.c