]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mctp i3c: handle NULL header address
authorMatt Johnston <matt@codeconstruct.com.au>
Tue, 4 Mar 2025 05:59:51 +0000 (13:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:09 +0000 (13:02 +0100)
commitd8be54c35aee29d96d1350b1b6f153be4da37c07
tree29652b0d1e410ebf757e8f655a597f993bce32eb
parentbb73c406b4c6078c02ab60a48f9a73288b15ff9d
mctp i3c: handle NULL header address

[ Upstream commit cf7ee25e70c6edfac4553d6b671e8b19db1d9573 ]

daddr can be NULL if there is no neighbour table entry present,
in that case the tx packet should be dropped.

saddr will usually be set by MCTP core, but check for NULL in case a
packet is transmitted by a different protocol.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Fixes: c8755b29b58e ("mctp i3c: MCTP I3C driver")
Link: https://patch.msgid.link/20250304-mctp-i3c-null-v1-1-4416bbd56540@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/mctp/mctp-i3c.c