On 8/8/24 16:16, Mike Pattrick wrote:
> Currently it is possible to call netdev-dpdk/get-mempool-info before a
> mempool as been created. This can happen because a device is added to
> the netdev_shash before a mempool is allocated for it, which results in
> a segmentation fault.
> 
> Now we check for a NULL value before attempting to dereference it.
> 
> Fixes: be4817331071 ("netdev-dpdk: Add debug appctl to get mempool 
> information.")
> Signed-off-by: Mike Pattrick <[email protected]>
> ---
> v2: Added a test for this issue.
> v3: Set command error instead of printing error.
> v4: Re-ordered reverse xmas, removed duplicate string.
> ---
>  lib/netdev-dpdk.c    | 25 +++++++++++++++++--------
>  tests/system-dpdk.at |  6 ++++++
>  2 files changed, 23 insertions(+), 8 deletions(-)


Thanks, Mike!  Applied and backported down to 2.17.

Best regards, Ilya Maximets.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to