[PATCH v4 2/3] net/xsc: fix leak and missing null check
Thomas Monjalon
thomas at monjalon.net
Fri Nov 20 11:36:10 CET 2026
17/11/2026 12:14, Renyong Wan:
> xsc_dev_init() leaks the structure when the dev_ops lookup fails. Free
> it there: xsc_dev_uninit() cannot be used, as xsc_dev_close()
> dereferences xdev->dev_ops.
>
> xsc_ethdev_tx_queue_setup() misses the NULL check on the
> rte_malloc_socket() result. Return -ENOMEM, as the Rx path does.
I don't see how fixes are related.
It's probably better to have 2 commits.
More information about the dev
mailing list