raw/ioat: fix missing device name in idxd bus scan
PATCH 1/1 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.
--- drivers/raw/ioat/idxd_bus.c | 1 + 1 file changed, 1 insertion(+)
drivers/raw/ioat/idxd_bus.c +1 -0
@@ -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);
Signature · 1 line
2.30.2
Quoted 4 lines · Kevin Laatz
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.
Quoted 8 lines
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")Reported-by Sunil Pai G <[email protected]>Signed-off-by Kevin Laatz <[email protected]>---
Pai G, Sunil
Tested-byQuoted 16 lines
-----Original Message-----
From: Richardson, Bruce <[email protected]>
Sent: Thursday, May 27, 2021 7:58 PM
To: Laatz, Kevin <[email protected]>
Cc: [email protected]; [email protected]; Pai G, Sunil <[email protected]>
Subject: Re: [PATCH] raw/ioat: fix missing device name in idxd bus scanQuoted 7 lines · Kevin Laatz
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.
Quoted 7 lines
Quoted 6 lines
Fixes b7aaf417f936 ("raw/ioat: add bus driver for device scanningautomatically")
Reported-by Sunil Pai G <[email protected]>Signed-off-by Kevin Laatz <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Thomas Monjalon
AppliedQuoted 10 lines
Quoted 10 lines
Quoted 10 lines
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 scanningautomatically")
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Reported-by Sunil Pai G <[email protected]>Signed-off-by Kevin Laatz <[email protected]>---
Acked-by Bruce Richardson <[email protected]>Tested-by Sunil Pai G <[email protected]>
Applied, thanks