Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Alok Tiwari and committed by
Jeff Hugo
01eb80b7 c9e3878a

+2 -2
+2 -2
drivers/accel/qaic/qaic_ras.c
··· 497 497 qdev->ce_count++; 498 498 break; 499 499 case UE: 500 - if (qdev->ce_count != UINT_MAX) 500 + if (qdev->ue_count != UINT_MAX) 501 501 qdev->ue_count++; 502 502 break; 503 503 case UE_NF: 504 - if (qdev->ce_count != UINT_MAX) 504 + if (qdev->ue_nf_count != UINT_MAX) 505 505 qdev->ue_nf_count++; 506 506 break; 507 507 default: