linux/net/packet
Wolfram Sang 7eee00feb6 packet: move from strlcpy with unused retval to strscpy
[ Upstream commit 8fc9d51ea2 ]

Follow the advice of the below link and prefer 'strscpy' in this
subsystem. Conversion is 1:1 because the return value is not used.
Generated by a coccinelle script.

Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20220818210227.8611-1-wsa+renesas@sang-engineering.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: a7d6027790 ("arp: Prevent overflow in arp_req_get().")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:13:37 +01:00
..
af_packet.c packet: move from strlcpy with unused retval to strscpy 2024-03-01 13:13:37 +01:00
diag.c af_packet: Fix data-races of pkt_sk(sk)->num. 2023-06-09 10:28:53 +02:00
internal.h packet: Move reference count in packet_sock to atomic_long_t 2023-12-13 18:18:14 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00