summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-09-27 16:58:29 +0300
committerDavid S. Miller <davem@davemloft.net>2021-09-28 15:09:02 +0300
commitd68c2e1d19c540464ad12a8a11bdd88eedcaf3dc (patch)
tree05dd62ab9fe261cb6ae248c16b3608f8e10fc34a /scripts/const_structs.checkpatch
parent861f40fa0edfe38806a2a6e7201bfed821906d2d (diff)
downloadlinux-d68c2e1d19c540464ad12a8a11bdd88eedcaf3dc.tar.xz
net: stmmac: fix off-by-one error in sanity check
My previous patch had an off-by-one error in the added sanity check, the arrays are MTL_MAX_{RX,TX}_QUEUES long, so if that index is that number, it has overflown. The patch silenced the warning anyway because the strings could no longer overlap with the input, but they could still overlap with other fields. Fixes: 3e0d5699a975 ("net: stmmac: fix gcc-10 -Wrestrict warning") Reported-by: Russell King (Oracle) <linux@armlinux.org.uk> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions