]> git.baikalelectronics.ru Git - kernel.git/commit
net/af_iucv: drop inbound packets with invalid flags
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 5 Sep 2018 14:55:10 +0000 (16:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 05:32:21 +0000 (22:32 -0700)
commit586e00e34bf741fd395873415ac893ddcb4ba8bd
tree5ed476604db578b0c0d1f0bdc2bfc7cd154f7aff
parent543a686b0f9273f5c47ff3cbaf79d2f9eaf653af
net/af_iucv: drop inbound packets with invalid flags

Inbound packets may have any combination of flag bits set in their iucv
header. If we don't know how to handle a specific combination, drop the
skb instead of leaking it.

To clarify what error is returned in this case, replace the hard-coded
0 with the corresponding macro.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c