s390/qeth: make af_iucv TX notification call more robust
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 20 Nov 2020 09:09:37 +0000 (10:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Nov 2020 02:59:48 +0000 (18:59 -0800)
commit34c7f50f7d0d36fa663c74aee39e25e912505320
tree0b3b3fa776394b5a0abcb8811617883928c758f8
parent0d0e2b538c13f4f698ba58485a573ce824036567
s390/qeth: make af_iucv TX notification call more robust

Calling into socket code is ugly already, at least check whether we are
dealing with the expected sk_family. Only looking at skb->protocol is
bound to cause troubles (consider eg. af_packet).

Fixes: b333293058aa ("qeth: add support for af_iucv HiperSockets transport")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/s390/net/qeth_core_main.c