linux/drivers/net/mctp
Matt Johnston d8be54c35a mctp i3c: handle NULL header address
[ Upstream commit cf7ee25e70 ]

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: c8755b29b5 ("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>
History 2025-03-13 13:02:09 +01:00
..
Kconfig net: mctp-serial: Add kunit test for next_chunk_len() 2024-09-01 18:14:01 +01:00
Makefile mctp i3c: MCTP I3C driver 2023-10-17 12:45:03 +02:00
mctp-i2c.c mctp i2c: handle NULL header address 2024-10-29 11:22:38 -07:00
mctp-i3c.c mctp i3c: handle NULL header address 2025-03-13 13:02:09 +01:00
mctp-serial.c TTY/Serial driver update for 6.12-rc1 2024-09-26 09:59:50 -07:00