linux/drivers/net/mctp
Matt Johnston 01e215975f mctp i2c: handle NULL header address
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.

Fixes: f5b8abf9fc ("mctp i2c: MCTP I2C binding driver")
Cc: stable@vger.kernel.org
Reported-by: Dung Cao <dung@os.amperecomputing.com>
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241022-mctp-i2c-null-dest-v3-1-e929709956c5@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-10-29 11:22:38 -07: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 move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
mctp-serial.c TTY/Serial driver update for 6.12-rc1 2024-09-26 09:59:50 -07:00