Re: [dpdk-dev] [PATCH v3 1/2] net/mlx5: fix double free on error handling

2018-05-09 Thread Shahaf Shuler
Tuesday, May 8, 2018 10:09 PM, Yongseok Koh: > Subject: Re: [PATCH v3 1/2] net/mlx5: fix double free on error handling > > > > On May 8, 2018, at 2:11 AM, Raslan Darawsheh > wrote: > > > > When attr_ctx is NULL it will attempt to free the list of devices twice. > > Avoid double freeing the list

Re: [dpdk-dev] [PATCH v3 1/2] net/mlx5: fix double free on error handling

2018-05-08 Thread Yongseok Koh
> On May 8, 2018, at 2:11 AM, Raslan Darawsheh wrote: > > When attr_ctx is NULL it will attempt to free the list of devices twice. > Avoid double freeing the list by directly going to error handling. > > Fixes: 771fa900b73a ("mlx5: introduce new driver for Mellanox ConnectX-4 > adapters") > Cc

[dpdk-dev] [PATCH v3 1/2] net/mlx5: fix double free on error handling

2018-05-08 Thread Raslan Darawsheh
When attr_ctx is NULL it will attempt to free the list of devices twice. Avoid double freeing the list by directly going to error handling. Fixes: 771fa900b73a ("mlx5: introduce new driver for Mellanox ConnectX-4 adapters") Cc: sta...@dpdk.org Signed-off-by: Raslan Darawsheh --- v2 changes: B