linux-xiaomi-chiron/drivers/net/ethernet
Arnd Bergmann e8f967c3d8 mvpp2: use correct size for memset
gcc-7 detects a short memset in mvpp2, introduced in the original
merge of the driver:

drivers/net/ethernet/marvell/mvpp2.c: In function 'mvpp2_cls_init':
drivers/net/ethernet/marvell/mvpp2.c:3296:2: error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size]

The result seems to be that we write uninitialized data into the
flow table registers, although we did not get any warning about
that uninitialized data usage.

Using sizeof() lets us initialize then entire array instead.

Fixes: 3f518509de ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-25 20:57:21 -05:00
..
3com
8390
adaptec
adi
aeroflex
agere
allwinner
alteon
altera
amazon
amd
apm
apple
arc
atheros
aurora
broadcom bnxt: do not busy-poll when link is down 2016-11-24 15:39:21 -05:00
brocade
cadence net: macb: add check for dma mapping error in start_xmit() 2016-11-19 10:29:49 -05:00
calxeda
cavium
chelsio
cirrus
cisco
davicom
dec
dlink
emulex
ezchip
faraday
freescale fsl/fman: fix a leak in tgec_free() 2016-11-25 20:29:48 -05:00
fujitsu
hisilicon
hp
i825xx
ibm ibmvnic: drop duplicate header seq_file.h 2016-11-25 20:32:10 -05:00
intel
marvell mvpp2: use correct size for memset 2016-11-25 20:57:21 -05:00
mediatek
mellanox net/mlx5: drop duplicate header delay.h 2016-11-25 20:33:10 -05:00
micrel
microchip
moxa
myricom
natsemi
neterion
netronome
nuvoton
nvidia
nxp
oki-semi
packetengines
pasemi
qlogic
qualcomm
rdc
realtek
renesas
rocker
samsung
seeq
sfc
sgi
silan
sis
smsc
stmicro ethernet: stmmac: make DWMAC_STM32 depend on it's associated SoC 2016-11-21 11:34:24 -05:00
sun sunbmac: Fix compiler warning 2016-11-18 11:18:27 -08:00
synopsys dwc_eth_qos: drop duplicate headers 2016-11-25 16:13:59 -05:00
tehuti
ti net: ethernet: ti: cpsw: fix fixed-link phy probe deferral 2016-11-18 13:48:54 -05:00
tile
toshiba
tundra
via
wiznet
xilinx
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
netx-eth.c