Claude review: accel/qaic: fix incorrect counter check in RAS message decode

Claude Code Review Bot
2026-04-11T23:40:28Z

Overall Series Review

Subject: accel/qaic: fix incorrect counter check in RAS message decode
Author: Alok Tiwari <alok.a.tiwari@oracle.com>
Patches: 3
Reviewed: 2026-04-12T09:40:28.470501

---

This is a single-patch fix for a clear copy-paste bug in the QAIC accelerator RAS (Reliability, Accessibility, Serviceability) error counter logic. The fix is correct, minimal, and obviously right. The bug was introduced in commit c11a50b170e7 and causes `ue_count` and `ue_nf_count` to be gated by the wrong overflow check — they look at `ce_count` instead of their own counter. This means those counters stop incrementing once `ce_count` (not the relevant counter) saturates at `UINT_MAX`, which is both functionally wrong and could mask uncorrectable error reporting.

**Verdict: This patch should be accepted.**

---
Generated by Claude Code Patch Reviewer