summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-11-24 16:28:12 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-11-26 01:57:21 (GMT)
commite8f967c3d88489fc1562a31d4e44d905ac1d3aff (patch)
treee6d9c605095627b7739cee205230ede958e8e7ef /net/tipc
parent5e7dfeb758663391ec721e6a4519d3df874f9b1f (diff)
downloadlinux-e8f967c3d88489fc1562a31d4e44d905ac1d3aff.tar.xz
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: 3f518509dedc ("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>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions