]> git.baikalelectronics.ru Git - kernel.git/commit
mctp: Fix check for dev_hard_header() result
authorMatt Johnston <matt@codeconstruct.com.au>
Fri, 1 Apr 2022 02:48:42 +0000 (10:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Apr 2022 11:04:15 +0000 (12:04 +0100)
commite461e0760ff5e0624bcccf39b1828250f85fbeec
tree74bb288425b7047cbb64504509d65035d8727c41
parent16f3707d8c770adcc2535871cebfa17d5145c764
mctp: Fix check for dev_hard_header() result

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

Fixes: fcb52e4d03dd ("mctp: Add initial routing framework")
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mctp/route.c