linux-kernelorg-stable/drivers/net/mctp
Daniel Hsu 9e542640c2 mctp: Fix incorrect tx flow invalidation condition in mctp-i2c
[ Upstream commit 70facbf978 ]

Previously, the condition for invalidating the tx flow in
mctp_i2c_invalidate_tx_flow() checked if `rc` was nonzero.
However, this could incorrectly trigger the invalidation
even when `rc > 0` was returned as a success status.

This patch updates the condition to explicitly check for `rc < 0`,
ensuring that only error cases trigger the invalidation.

Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-29 11:02:06 +02:00
..
Kconfig
Makefile
mctp-i2c.c mctp: Fix incorrect tx flow invalidation condition in mctp-i2c 2025-05-29 11:02:06 +02:00
mctp-i3c.c net: mctp i3c: Copy headers if cloned 2025-03-22 12:54:11 -07:00
mctp-serial.c