]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: refactor tipc_sk_bind() function
authorJon Maloy <jmaloy@redhat.com>
Wed, 25 Nov 2020 18:29:13 +0000 (13:29 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Nov 2020 01:34:01 +0000 (17:34 -0800)
commit7da1cc74209235cc131e8f47c95542f48beb00b3
treeb308bcd3e3bde66c55e312c6db66a57d8318b0d4
parent72dd1372daa8c54e3e3ef3c2b2975d33adb101df
tipc: refactor tipc_sk_bind() function

We refactor the tipc_sk_bind() function, so that the lock handling
is handled separately from the logics. We also move some sanity
tests to earlier in the call chain, to the function tipc_bind().

Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tipc/socket.c