mctp: Warn if pointer is set for a wrong dev type
authorMatt Johnston <matt@codeconstruct.com.au>
Wed, 29 Sep 2021 07:26:14 +0000 (15:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2021 10:00:12 +0000 (11:00 +0100)
commit7b1871af75f30d9d88184fff42698718fa157dcf
treeec5be2baead105d91fee958dd53ac4bae57ae5b6
parent6183569db80eedc648b584a658e6b898d43650cb
mctp: Warn if pointer is set for a wrong dev type

Should not occur but is a sanity check.

May help tracking down Trinity reported issue
https://lore.kernel.org/lkml/20210913030701.GA5926@xsang-OptiPlex-9020/

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mctp/device.c