|SUCCESS| [2/2] net/xsc: fix leak and missing NULL check

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Fri Nov 13 05:44:49 CET 2026


Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172862

_AI Code Review_

=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-13

Patch 2/2 (net/xsc: fix leak and missing NULL check)

Info:
- This is pre-existing and not introduced by this patch. The Tx queue structure, which ends in an mbuf pointer array, is allocated with plain `rte_malloc_socket()`:
  `txq = rte_malloc_socket(NULL, sizeof(*txq) + desc_n * sizeof(struct rte_mbuf *),`
  The guidelines prefer `rte_zmalloc_socket()` for Rx/Tx queue structures. Zeroing avoids stale fields and stale `elts` entries. Consider switching in a separate patch.

Review-Result: CLEAN


More information about the test-report mailing list