Re: [PATCH] devargs: fix derefrence before null test

2023-10-30 Thread Stephen Hemminger
On Mon, 30 Oct 2023 19:45:29 +0800 Weiguo Li wrote: > diff --git a/lib/eal/common/eal_common_devargs.c > b/lib/eal/common/eal_common_devargs.c index fb5d0a293b..8d6c3938eb > 100644 --- a/lib/eal/common/eal_common_devargs.c > +++ b/lib/eal/common/eal_common_devargs.c > @@ -185,11 +185,13 @@ rte_de

[PATCH] devargs: fix derefrence before null test

2023-10-30 Thread Weiguo Li
Pointer 'da' was dereferenced and then compared to NULL, reorder the code to keep the logic consistent. Fixes: 4969f5914c9e ("devargs: introduce new parsing helper") Cc: sta...@dpdk.org Signed-off-by: Weiguo Li --- .mailmap| 2 +- lib/eal/common/eal_common_devargs.c