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)
commit222440996d6daf635bed6cb35041be22ede3e8a0
tree5ed476604db578b0c0d1f0bdc2bfc7cd154f7aff
parentee28bb56ac5b4c0c08ef10d33cc7adb749bbf4c6
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