From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6C59AA0548; Thu, 27 May 2021 15:45:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01C4240698; Thu, 27 May 2021 15:45:34 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id BFAB440683; Thu, 27 May 2021 15:45:32 +0200 (CEST) IronPort-SDR: iVp9LPuxTDWrjt2NQAiXj4GhBJEnP48hwgHCqGWpZZ9dRHiV0f782c0pXipRxCW6Om7Zj0IDCu AUIc3WNHQtHQ== X-IronPort-AV: E=McAfee;i="6200,9189,9996"; a="266622911" X-IronPort-AV: E=Sophos;i="5.82,334,1613462400"; d="scan'208";a="266622911" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2021 06:45:31 -0700 IronPort-SDR: FGTE9hP8Llkl0MtX+3Yj3HNA/yCVUifAs5LfHuBktQgLBhElj97I7SvlYWgGl1gu+CkZLtapiF fHShvw8MY05g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,334,1613462400"; d="scan'208";a="443574346" Received: from silpixa00399838.ir.intel.com ([10.237.213.105]) by orsmga008.jf.intel.com with ESMTP; 27 May 2021 06:45:30 -0700 From: Kevin Laatz To: dev@dpdk.org Cc: stable@dpdk.org, bruce.richardson@intel.com, sunil.pai.g@intel.com, Kevin Laatz Date: Thu, 27 May 2021 14:36:09 +0100 Message-Id: <20210527133609.3565778-1-kevin.laatz@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] raw/ioat: fix missing device name in idxd bus scan X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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") Reported-by: Sunil Pai G Signed-off-by: Kevin Laatz --- 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.30.2