Re: [PATCH v2] net/memif: remove pointer deference before null check

2022-02-09 Thread Ferruh Yigit
On 2/9/2022 1:56 PM, Ferruh Yigit wrote: On 2/9/2022 7:39 AM, Weiguo Li wrote: There are duplicates of assignment here, the one before null check may cause a null pointer deference, so remove the previous one. Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD") Cc: sta...@dpdk.

Re: [PATCH v2] net/memif: remove pointer deference before null check

2022-02-09 Thread Ferruh Yigit
On 2/9/2022 7:39 AM, Weiguo Li wrote: There are duplicates of assignment here, the one before null check may cause a null pointer deference, so remove the previous one. Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD") Cc: sta...@dpdk.org Signed-off-by: Weiguo Li Reviewed

[PATCH v2] net/memif: remove pointer deference before null check

2022-02-08 Thread Weiguo Li
There are duplicates of assignment here, the one before null check may cause a null pointer deference, so remove the previous one. Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD") Signed-off-by: Weiguo Li --- v2: * fix typo --- drivers/net/memif/memif_socket.c | 3 +-- 1 file c