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)
commit60c102eedea0e487c897dd23cc7fefecf4449769
treeb308bcd3e3bde66c55e312c6db66a57d8318b0d4
parentfff4c74690018c4f741d1ae68c2ba2143b66844a
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