Re: [PATCH v2 1/2] ethdev: fix null pointer dereference

2023-03-03 Thread Ferruh Yigit
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 saniti

[PATCH v2 1/2] ethdev: fix null pointer dereference

2023-03-03 Thread Ankur Dwivedi
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(