linux/drivers/net/ethernet/brocade/bna
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
..
bfa_cee.c bna: get rid of private macros for manipulation with lists 2015-06-11 15:57:17 -07:00
bfa_cee.h bna: QLogic BR-series Adapters Driver Rebranding 2015-02-21 22:05:22 -05:00
bfa_cs.h bna: get rid of duplicate and unused macros 2015-06-11 15:57:15 -07:00
bfa_defs_cna.h bna: replace pragma(pack) with attribute __packed 2015-06-11 15:57:15 -07:00
bfa_defs_mfg_comm.h bna: remove superfluous parentheses 2015-06-21 10:29:02 -07:00
bfa_defs_status.h bna: QLogic BR-series Adapters Driver Rebranding 2015-02-21 22:05:22 -05:00
bfa_defs.h bna: get rid of duplicate and unused macros 2015-06-11 15:57:15 -07:00
bfa_ioc_ct.c bna: remove superfluous parentheses 2015-06-21 10:29:02 -07:00
bfa_ioc.c bna: fix error handling 2015-09-29 13:49:53 -07:00
bfa_ioc.h bna: fix timeout API argument type 2015-06-11 15:57:17 -07:00
bfa_msgq.c bna: get rid of private macros for manipulation with lists 2015-06-11 15:57:17 -07:00
bfa_msgq.h bna: QLogic BR-series Adapters Driver Rebranding 2015-02-21 22:05:22 -05:00
bfi_cna.h bna: replace pragma(pack) with attribute __packed 2015-06-11 15:57:15 -07:00
bfi_enet.h bna: use BIT(x) instead of (1 << x) 2015-06-11 15:57:15 -07:00
bfi_reg.h bna: QLogic BR-series Adapters Driver Rebranding 2015-02-21 22:05:22 -05:00
bfi.h bna: get rid of duplicate and unused macros 2015-06-11 15:57:15 -07:00
bna_enet.c bna: remove unnecessary cast of BIT value 2015-06-21 10:29:00 -07:00
bna_hw_defs.h bna: use BIT(x) instead of (1 << x) 2015-06-11 15:57:15 -07:00
bna_tx_rx.c bna: fix list corruption 2016-03-01 15:19:43 -05:00
bna_types.h bna: check for dma mapping errors 2015-09-20 21:36:57 -07:00
bna.h bna: make pointers to read-only inputs const 2015-06-21 10:29:01 -07:00
bnad_debugfs.c net: bna: use correct type specifier (2) 2016-08-01 13:32:52 -07:00
bnad_ethtool.c bna: fix crash in bnad_get_strings() 2016-09-17 10:18:02 -04:00
bnad.c bna: fix Rx data corruption with VLAN stripping enabled and MTU > 4096 2016-01-15 21:49:25 -05:00
bnad.h bna: check for dma mapping errors 2015-09-20 21:36:57 -07:00
cna_fwimg.c bna: use netdev_* and dev_* instead of printk and pr_* 2015-06-11 15:57:18 -07:00
cna.h bna: get rid of private macros for manipulation with lists 2015-06-11 15:57:17 -07:00
Kconfig bna: QLogic BR-series Adapters Driver Rebranding 2015-02-21 22:05:22 -05:00
Makefile bna: remove obsolete use of EXTRA_CFLAGS 2015-06-10 21:59:02 -07:00