summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorDaniel Hsu <d486250@gmail.com>2025-03-25 16:10:08 +0800
committerDavid S. Miller <davem@davemloft.net>2025-03-26 13:03:59 +0000
commit70facbf978ac90c6da17a3de2a8dd111b06f1bac (patch)
treef1e3ddb8fa713e9a297b33ae9981cae83d94d1f8 /net/lapb/lapb_timer.c
parentc7d82913d5f9e97860772ee4051eaa66b56a6273 (diff)
mctp: Fix incorrect tx flow invalidation condition in mctp-i2c
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>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions