raw/ioat: fix missing device name in idxd bus scan
authorKevin Laatz <kevin.laatz@intel.com>
Thu, 27 May 2021 13:36:09 +0000 (14:36 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 17 Jun 2021 07:37:12 +0000 (09:37 +0200)
commitacbedb58fa5ee278f8a795a02000e136a95e3a6a
treee6d7be5beb09971657dcbcf1445e18bc3b12b5ec
parentb3b36f0fbf1fd68980afce10300f1b8831607324
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 <sunil.pai.g@intel.com>
Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Sunil Pai G <sunil.pai.g@intel.com>
drivers/raw/ioat/idxd_bus.c