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 32F6E45A9D; Wed, 2 Oct 2024 17:45:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE5A4402B8; Wed, 2 Oct 2024 17:44:44 +0200 (CEST) Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) by mails.dpdk.org (Postfix) with ESMTP id 6B17C402EA for ; Wed, 2 Oct 2024 17:44:42 +0200 (CEST) Received: by mail-oi1-f174.google.com with SMTP id 5614622812f47-3e03a5ed4d7so3537695b6e.1 for ; Wed, 02 Oct 2024 08:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727883881; x=1728488681; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HCt/WQI5sO7axY3DHorG5Ls6zAF7xLHZak77QAgDqKo=; b=q2jO4Y/kmDH+C2mtpwO2v6I2YUNziQd/GDTZq9hGW4ATaWmZQhNltxEqxSpiyLmmJz gyF2PEb8jvRYN2XRa1OIfH9o6wNwmLT1wjshRlzIHQJkqUqkrJSuSWY/J4RlzkuW+pRi ygDqNWoeCxWJdukmi1SmvemldHE1L7q+z6lCC2DBNr8wkoETCqIsEaklFI0IVIy6Mz4f o8iWNWX5UXimMNL1XUxkfWpLbNtMo/bFQms8DoWJGT/aA9Bvm6qvLYGmN9II0Hfjdk/u BA6Oy/6zLy8du55Y1Pegf+N7Sa2UCgrYE+xhhHNoPFmntEgnyCkxaauvLtWf1UvB1RO7 Uc8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727883881; x=1728488681; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HCt/WQI5sO7axY3DHorG5Ls6zAF7xLHZak77QAgDqKo=; b=c2Jb3sISD69rDcY7U7ixpm/zZrpJ+eQAIWc2dh2+LsuDguXMP74w8FDmu1QPYuMisk EtVJ42FvNv5LVJ4SYUE1D7wEFAsAfVWKvnR/ujtADBnEvBs8POfOvdz79vQi+/M0CVLw 6RyOfnH5sKsZ8ZUsRjIb20RCg2t9qM1SwZsbmd3Aoru+7t3EQ+Kll6nooNIxyGTBw5Iv kjU4L8FdMOBZ2fNehm5l+FdINccj7kx2nXp0Ng/DmNyvT7lakh33dt1OcwMfcEAgjRub FkF91o8UzWVe/eZzG40/vQfH2jgZhIGqlA7CTynGMOxhHbSX5XW8WMuO2HV2nOeKLiMf pn0w== X-Gm-Message-State: AOJu0YwBiQBhG+l/Snxrp2BbYSgKK00JEfHvg81uJtNVPOKMFE989zTm FmYlnriMUkXVql4PP4shrierNid2cGDDYKDWHq/KuANi7X7jxCyKFfDHb60Ng2zis40uCVCZDRK yzzs= X-Google-Smtp-Source: AGHT+IEAnaGlPY+NX81hI7lqO3JRCprdw7kaq+/LzobbLYRitFwV0ZeccAz/OVASU4IRU3paRCfU3g== X-Received: by 2002:a05:6808:17a6:b0:3e3:a923:5208 with SMTP id 5614622812f47-3e3b40ece81mr3277562b6e.2.1727883881599; Wed, 02 Oct 2024 08:44:41 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6db2927c7sm10247363a12.1.2024.10.02.08.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 08:44:41 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , kevin.laatz@intel.com, stable@dpdk.org, Bruce Richardson , Conor Walsh Subject: [PATCH v6 03/17] dma/ixd: fix incorrect free function in cleanup Date: Wed, 2 Oct 2024 08:42:47 -0700 Message-ID: <20241002154429.64357-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241002154429.64357-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241002154429.64357-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The data structure is allocated with rte_malloc and incorrectly freed in cleanup logic using free. Bugzilla ID: 1549 Fixes: 9449330a8458 ("dma/idxd: create dmadev instances on PCI probe") Cc: kevin.laatz@intel.com Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Reviewed-by: Bruce Richardson --- drivers/dma/idxd/idxd_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/idxd/idxd_pci.c b/drivers/dma/idxd/idxd_pci.c index 81637d9420..f89e2b41ff 100644 --- a/drivers/dma/idxd/idxd_pci.c +++ b/drivers/dma/idxd/idxd_pci.c @@ -301,7 +301,7 @@ init_pci_device(struct rte_pci_device *dev, struct idxd_dmadev *idxd, return nb_wqs; err: - free(pci); + rte_free(pci); return err_code; } -- 2.45.2