Loading
mctp i2c: handle NULL header address
stable inclusion from stable-v6.6.60 commit 8e886e44397ba89f6e8da8471386112b4f5b67b7 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB44K1 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8e886e44397ba89f6e8da8471386112b4f5b67b7 -------------------------------- [ Upstream commit 01e215975fd80af81b5b79f009d49ddd35976c13 ] 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: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> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>