aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/netns.py
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-03-18 18:55:19 +0000
committerPablo Neira Ayuso <[email protected]>2025-03-23 09:53:47 +0000
commit3b4aff61ca5dd696856d2db98e9268d94504eff3 (patch)
tree8e75f741a863fb0c5e86a5a8842e187f063f268b /tools/testing/selftests/net/lib/py/netns.py
parentnetfilter: nfnetlink_queue: Initialize ctx to avoid memory allocation error (diff)
downloadkernel-3b4aff61ca5dd696856d2db98e9268d94504eff3.tar.gz
kernel-3b4aff61ca5dd696856d2db98e9268d94504eff3.zip
netfilter: xtables: Use strscpy() instead of strscpy_pad()
kzalloc() already zero-initializes the destination buffer, making strscpy() sufficient for safely copying the name. The additional NUL- padding performed by strscpy_pad() is unnecessary. The size parameter is optional, and strscpy() automatically determines the size of the destination buffer using sizeof() if the argument is omitted. This makes the explicit sizeof() call unnecessary; remove it. No functional changes intended. Signed-off-by: Thorsten Blum <[email protected]> Reviewed-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/netns.py')
0 files changed, 0 insertions, 0 deletions