Re: [PATCH v1] bus/ifpga: fix issue of accessing null address

2023-03-20 Thread Thomas Monjalon
> > In function ifpga_scan_one(), variable 'path' is NULL if device argument > > 'afu_bts' is > > not set, subsequent string copy with 'path' would lead to segmentation > > fault. > > > > Fixes: 6fa4aa2b3645 ("bus/ifpga: fix forcing optional devargs") > > Cc: sta...@dpdk.org > > > > Signed-off-

RE: [PATCH v1] bus/ifpga: fix issue of accessing null address

2023-03-19 Thread Xu, Rosen
Hi, > -Original Message- > From: Huang, Wei > Sent: Friday, March 17, 2023 4:44 AM > To: dev@dpdk.org; tho...@monjalon.net; david.march...@redhat.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Tianfei > ; Zhang, Qi Z ; Huang, Wei > > Subject: [PATCH v1] bus/ifpga

RE: [PATCH v1] bus/ifpga: fix issue of accessing null address

2023-03-19 Thread Zhang, Tianfei
> -Original Message- > From: Huang, Wei > Sent: Friday, March 17, 2023 4:44 AM > To: dev@dpdk.org; tho...@monjalon.net; david.march...@redhat.com > Cc: sta...@dpdk.org; Xu, Rosen ; Zhang, Tianfei > ; Zhang, Qi Z ; Huang, Wei > > Subject: [PATCH v1] bus/ifpga

[PATCH v1] bus/ifpga: fix issue of accessing null address

2023-03-16 Thread Wei Huang
In function ifpga_scan_one(), variable 'path' is NULL if device argument 'afu_bts' is not set, subsequent string copy with 'path' would lead to segmentation fault. Fixes: 6fa4aa2b3645 ("bus/ifpga: fix forcing optional devargs") Cc: sta...@dpdk.org Signed-off-by: Wei Huang --- drivers/bus/ifpga/