diff options
author | Ray Kinsella <mdr@ashroe.eu> | 2021-11-08 07:22:49 +0000 |
---|---|---|
committer | Ray Kinsella <mdr@ashroe.eu> | 2021-11-08 09:33:25 +0000 |
commit | 81865bc0e3cfe2cf384640740ccbb18cc9a96163 (patch) | |
tree | 0e74c4e180a07772ef4d0308b5da755dafa0ffc4 /src/vlib/linux | |
parent | ad1bc84e6e4faad747aaf6b8499f0f467c242fc6 (diff) |
perfmon: fix iio-bw coverity issues
Fixes an number of coverity issues associated with the iio-bw feature.
Type: fix
Fixes: e15c999c3
Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
Change-Id: I9ad2b336694132545d90a3483200a510226e9198
Diffstat (limited to 'src/vlib/linux')
-rw-r--r-- | src/vlib/linux/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/linux/pci.c b/src/vlib/linux/pci.c index 66787992209..e049b239f48 100644 --- a/src/vlib/linux/pci.c +++ b/src/vlib/linux/pci.c @@ -389,7 +389,7 @@ vlib_pci_get_device_root_bus (vlib_pci_addr_t *addr, vlib_pci_addr_t *root_bus) { u8 *rel_path = 0, *abs_path = 0, *link_path = 0; unformat_input_t input; - u32 fd = open (sysfs_pci_dev_path, O_RDONLY); + int fd = open (sysfs_pci_dev_path, O_RDONLY); u32 size = 0; u32 domain = 0, bus; clib_error_t *err = NULL; |