linux/net/mctp
Matt Johnston 71d28e5073 mctp: Fix check for dev_hard_header() result
[ Upstream commit 60be976ac4 ]

dev_hard_header() returns the length of the header, so
we need to test for negative errors rather than non-zero.

Fixes: 889b7da23a ("mctp: Add initial routing framework")
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 20:59:16 +02:00
..
af_mctp.c mctp: handle the struct sockaddr_mctp padding fields 2021-11-18 19:16:02 +01:00
device.c mctp: Allow per-netns default networks 2021-07-29 15:06:50 +01:00
Kconfig
Makefile mctp: Add neighbour implementation 2021-07-29 15:06:50 +01:00
neigh.c mctp: Add neighbour netlink interface 2021-07-29 15:06:50 +01:00
route.c mctp: Fix check for dev_hard_header() result 2022-04-13 20:59:16 +02:00