]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/qaic: fix incorrect counter check in RAS message decode
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Fri, 10 Apr 2026 11:20:12 +0000 (04:20 -0700)
committerJeff Hugo <jeff.hugo@oss.qualcomm.com>
Fri, 1 May 2026 21:14:25 +0000 (15:14 -0600)
commit01eb80b767430ae868c48ad106c60eb61a508c85
tree8ea9a109ab7c2401d927cdb92fb0a5672d0f7ed0
parentc9e3878ae2f57fd6786279cf5d9dc6e6e1b52f5a
accel/qaic: fix incorrect counter check in RAS message decode

The UE and UE_NF cases check ce_count against UINT_MAX before incrementing
their respective counters. This is logically incorrect and prevents
ue_count and ue_nf_count from incrementing when ce_count reaches UINT_MAX.

Fixes: c11a50b170e7 ("accel/qaic: Add Reliability, Accessibility, Serviceability (RAS)")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260410112015.592546-1-alok.a.tiwari@oracle.com
drivers/accel/qaic/qaic_ras.c