From acbedb58fa5ee278f8a795a02000e136a95e3a6a Mon Sep 17 00:00:00 2001 From: Kevin Laatz Date: Thu, 27 May 2021 14:36:09 +0100 Subject: [PATCH] raw/ioat: fix missing device name in idxd bus scan The device name is not being initialized during the idxd bus scan which will cause segmentation faults when an appliation tries to access this information. This patch adds the required initialization of the device name so that it can be read without issues. Fixes: b7aaf417f936 ("raw/ioat: add bus driver for device scanning automatically") Cc: stable@dpdk.org Reported-by: Sunil Pai G Signed-off-by: Kevin Laatz Acked-by: Bruce Richardson Tested-by: Sunil Pai G --- drivers/raw/ioat/idxd_bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/raw/ioat/idxd_bus.c b/drivers/raw/ioat/idxd_bus.c index af400079ab..539f51b1b1 100644 --- a/drivers/raw/ioat/idxd_bus.c +++ b/drivers/raw/ioat/idxd_bus.c @@ -313,6 +313,7 @@ dsa_scan(void) read_device_int(dev, "numa_node", &numa_node); dev->device.numa_node = numa_node; + dev->device.name = dev->wq_name; } closedir(dev_dir); -- 2.20.1