]> git.baikalelectronics.ru Git - kernel.git/commit
net/af_iucv: set correct sk_protocol for child sockets
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 20 Nov 2020 10:06:57 +0000 (11:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Nov 2020 22:43:45 +0000 (14:43 -0800)
commit57b317233a1f4f6316e39461185397d3e063c60e
tree1071129990a95187ac0278fbcfcb3ce07e29d602
parentcaca5f97a62cd5e0160d827c78531f11c1923d9c
net/af_iucv: set correct sk_protocol for child sockets

Child sockets erroneously inherit their parent's sk_type (ie. SOCK_*),
instead of the PF_IUCV protocol that the parent was created with in
iucv_sock_create().

We're currently not using sk->sk_protocol ourselves, so this shouldn't
have much impact (except eg. getting the output in skb_dump() right).

Fixes: 5daef5d4c579 ("[S390]: Add AF_IUCV socket support")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Link: https://lore.kernel.org/r/20201120100657.34407-1-jwi@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/iucv/af_iucv.c