[PATCH v2 1/2] ethdev: fix null pointer dereference
Ferruh Yigit
ferruh.yigit at amd.com
Fri Mar 3 14:38:10 CET 2023
On 3/3/2023 11:31 AM, Ankur Dwivedi wrote:
> The speed_fec_capa pointer can be null. So dereferencing the pointer is
> removed and only the pointer is captured in trace function.
> Fixed few more trace functions in which null pointer can be dereferenced.
> As a result of this fix the address sanitizer error observed with
> rte_eth_trace_find_next_of() is also resolved.
>
> Coverity issue: 383238
> Bugzilla ID: 1162
> Fixes: 6679cf21d608 ("ethdev: add trace points")
> Fixes: ed04fd4072e9 ("ethdev: add trace points for flow")
>
> Signed-off-by: Ankur Dwivedi <adwivedi at marvell.com>
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
More information about the dev
mailing list