aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorAndrew Lunn <[email protected]>2020-11-10 03:32:22 +0100
committerJakub Kicinski <[email protected]>2020-11-11 17:42:24 -0800
commit0575bedd6a1575e3f585b5dd5621cdcd26978054 (patch)
tree0f38954163869f6ac2fa910eb19f60b1a468b216 /tools/perf/scripts/python/check-perf-trace.py
parent2492ae6bee24d0b7d2f51e5d0b87ec4f968a74b3 (diff)
drivers: net: sky2: Fix -Wstringop-truncation with W=1
In function ‘strncpy’, inlined from ‘sky2_name’ at drivers/net/ethernet/marvell/sky2.c:4903:3, inlined from ‘sky2_probe’ at drivers/net/ethernet/marvell/sky2.c:5049:2: ./include/linux/string.h:297:30: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] None of the device names are 16 characters long, so it was never an issue. But replace the strncpy with an snprintf() to prevent the theoretical overflow. Suggested-by: Stephen Hemminger <[email protected]> Signed-off-by: Andrew Lunn <[email protected]> Acked-by: Stephen Hemminger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions