Commit 47078933 authored by Matt Johnston's avatar Matt Johnston Committed by Greg Kroah-Hartman
Browse files

mctp i2c: handle NULL header address



[ Upstream commit 01e21597 ]

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: f5b8abf9 ("mctp i2c: MCTP I2C binding driver")
Cc: stable@vger.kernel.org
Reported-by: default avatarDung Cao <dung@os.amperecomputing.com>
Signed-off-by: default avatarMatt Johnston <matt@codeconstruct.com.au>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241022-mctp-i2c-null-dest-v3-1-e929709956c5@codeconstruct.com.au


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2fe5d62e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment