aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorJustin Stitt <[email protected]>2024-04-25 01:19:13 +0000
committerJakub Kicinski <[email protected]>2024-04-26 19:37:02 +0000
commit8880e2666fa87a7d62a60fea9fe9ed9ba21ddcf7 (patch)
tree0e9b0fc6327b4502880b36a73a83d2164eb0815b /net/ipv4/tcp_output.c
parentMerge branch 'implement-reset-reason-mechanism-to-detect' (diff)
downloadkernel-8880e2666fa87a7d62a60fea9fe9ed9ba21ddcf7.tar.gz
kernel-8880e2666fa87a7d62a60fea9fe9ed9ba21ddcf7.zip
net: dsa: lan9303: use ethtool_puts() for lan9303_get_strings()
This pattern of strncpy with some pointer arithmetic setting fixed-sized intervals with string literal data is a bit weird so let's use ethtool_puts() as this has more obvious behavior and is less-error prone. Nicely, we also get to drop a usage of the now deprecated strncpy() [1]. Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings [1] Link: https://github.com/KSPP/linux/issues/90 Suggested-by: Alexander Lobakin <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Justin Stitt <[email protected]> Link: https://lore.kernel.org/r/20240425-strncpy-drivers-net-dsa-lan9303-core-c-v4-1-9fafd419d7bb@google.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions