aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2024-06-20 20:56:22 +0000
committerPaolo Abeni <[email protected]>2024-06-25 09:10:18 +0000
commite4bd881d987121dbf1a288641491955a53d9f8f7 (patch)
treeef2df0464c770cbbc8c3fef267286bea0ab0dca8 /tools/testing/selftests/net/lib/py/utils.py
parentaf_unix: Set sk_peer_pid/sk_peer_cred locklessly for new socket. (diff)
downloadkernel-e4bd881d987121dbf1a288641491955a53d9f8f7.tar.gz
kernel-e4bd881d987121dbf1a288641491955a53d9f8f7.zip
af_unix: Remove put_pid()/put_cred() in copy_peercred().
When (AF_UNIX, SOCK_STREAM) socket connect()s to a listening socket, the listener's sk_peer_pid/sk_peer_cred are copied to the client in copy_peercred(). Then, the client's sk_peer_pid and sk_peer_cred are always NULL, so we need not call put_pid() and put_cred() there. Signed-off-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions