|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:12:30 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

No Errors or Warnings found in this series.

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

Info (pre-existing, not introduced by this patch): the Tx queue structure is allocated with a non-zeroing allocator, which is not what the guidelines recommend for queue structures.

```
txq = rte_malloc_socket(NULL, sizeof(*txq) + desc_n * sizeof(struct rte_mbuf *),
			RTE_CACHE_LINE_SIZE, socket);
```

Using `rte_zmalloc_socket()` would ensure the trailing `struct rte_mbuf *` array and any fields not explicitly set start out zeroed. That avoids stale pointers if cleanup code walks the element array before every slot is filled. This could be done in a separate patch.

Review-Result: CLEAN


More information about the test-report mailing list