]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:51:55 +0000 (08:51 +0100)
commit35eafcf4f84e1aa26d0b54bc2ff4580a928ef99b
tree251659e359c815a06afb51065b00f40d2c10996e
parent9ad73b2c797a71b51ade9d19e1ca212b684fe6d3
s390/qeth: make af_iucv TX notification call more robust

[ Upstream commit 34c7f50f7d0d36fa663c74aee39e25e912505320 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/net/qeth_core_main.c