raw/ifpga: fix variable initialization in probing
Scalar variable sub_brg_bdf may be used uninitialized in function
ifpga_rawdev_fill_info(). It is initialized now in this fix.
Coverity issue: 375805
Fixes: 9c006c45d0
("raw/ifpga: scan PCIe BDF device tree")
Cc: stable@dpdk.org
Signed-off-by: Wei Huang <wei.huang@intel.com>
Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
This commit is contained in:
parent
0105d49e7e
commit
aae56ac43b
@ -216,7 +216,7 @@ static int ifpga_rawdev_fill_info(struct ifpga_rawdev *ifpga_dev,
|
||||
char dir[1024] = "/sys/devices/";
|
||||
char *c;
|
||||
int ret;
|
||||
char sub_brg_bdf[4][16];
|
||||
char sub_brg_bdf[4][16] = {{0}};
|
||||
int point;
|
||||
DIR *dp = NULL;
|
||||
struct dirent *entry;
|
||||
|
Loading…
Reference in New Issue
Block a user