numam-dpdk/drivers/bus/pci
Andy Green fe5f777b53 bus/pci: replace strncpy by strlcpy
In function ‘pci_get_kernel_driver_by_path’,
    inlined from ‘pci_scan_one.isra.1’ at
	drivers/bus/pci/linux/pci.c:317:8:
drivers/bus/pci/linux/pci.c:57:3: error:
‘strncpy’ specified bound depends on the length of the source argument
[-Werror=stringop-overflow=]
   strncpy(dri_name, name + 1, strlen(name + 1) + 1);

Fixes: d9a8cd9595 ("pci: add kernel driver type")
Cc: stable@dpdk.org

Signed-off-by: Andy Green <andy@warmcat.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2018-05-14 23:32:23 +02:00
..
bsd drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
linux bus/pci: replace strncpy by strlcpy 2018-05-14 23:32:23 +02:00
Makefile bus/pci: do not reference devargs list 2018-04-25 03:58:10 +02:00
meson.build bus/pci: use memseg walk instead of iteration 2018-04-11 19:48:10 +02:00
pci_common_uio.c bus/pci: fix interrupt handler type 2018-01-12 01:04:22 +01:00
pci_common.c bus/pci: fix find device implementation 2018-04-27 16:31:44 +02:00
private.h bus/pci: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:32:52 +01:00
rte_bus_pci_version.map bus/pci: fix namespace of sysfs path function 2017-11-07 00:44:10 +01:00
rte_bus_pci.h bus/pci: fix find device implementation 2018-04-27 16:31:44 +02:00