|WARNING| net/qede: initialize ptt to prevent derefence
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Fri Nov 13 19:57:07 CET 2026
Test-Label: ai-code-review
Test-Status: WARNING
https://dpdk.org/patch/172876
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-13
**Error: PTT window acquired in the VF branch is never released**
```c
+ ptt = ecore_ptt_acquire(ECORE_LEADING_HWFN(edev));
+ if (ptt)
+ ecore_mcp_get_mfw_ver(ECORE_LEADING_HWFN(edev), ptt,
+ &dev_info->mfw_rev, NULL);
}
```
The new code acquires a PTT entry but never releases it. The PF branch just above pairs its acquire with `ecore_ptt_release(ECORE_LEADING_HWFN(edev), ptt);`.
PTT windows are a small fixed pool. Leaking one on every `qed_fill_dev_info()` call will eventually exhaust the pool, and later `ecore_ptt_acquire()` calls will fail.
Release the PTT after use, and use an explicit NULL comparison:
```c
} else {
ptt = ecore_ptt_acquire(ECORE_LEADING_HWFN(edev));
if (ptt != NULL) {
ecore_mcp_get_mfw_ver(ECORE_LEADING_HWFN(edev), ptt,
&dev_info->mfw_rev, NULL);
ecore_ptt_release(ECORE_LEADING_HWFN(edev), ptt);
}
}
```
Review-Result: ERROR
More information about the test-report
mailing list