diff options
| author | Kuniyuki Iwashima <[email protected]> | 2024-12-13 11:08:47 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-12-17 11:08:28 +0000 |
| commit | 689c398885cc27d2a5bb2ad5d70324107d4a78ec (patch) | |
| tree | b71e0eea5ba1fd0358d33a9f301421608d3a1fed /tools/testing/selftests/net/lib/py/utils.py | |
| parent | af_unix: Split restart label in unix_dgram_sendmsg(). (diff) | |
| download | kernel-689c398885cc27d2a5bb2ad5d70324107d4a78ec.tar.gz kernel-689c398885cc27d2a5bb2ad5d70324107d4a78ec.zip | |
af_unix: Defer sock_put() to clean up path in unix_dgram_sendmsg().
When other has SOCK_DEAD in unix_dgram_sendmsg(), we call sock_put() for
it first and then set NULL to other before jumping to the error path.
This is to skip sock_put() in the error path.
Let's not set NULL to other and defer the sock_put() to the error path
to clean up the labels later.
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
