[PATCH 00/10] require checking ethdev get return value
Morten Brørup
mb at smartsharesystems.com
Tue Oct 8 11:33:35 CEST 2024
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Friday, 4 October 2024 18.22
>
> Several places flagged by Coverity and Codeql are from code that
> calls rte_eth_dev_info_get() but does not check the return value.
> If rte_eth_dev_info_get() returns an error, the device info is garbage.
>
> This patch series uses the function attribute to force code
> to check the result or there will be a compiler warning.
This is slow path, so no performance issues.
For the series,
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list