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 C704A45A51; Sat, 28 Sep 2024 18:48:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9176140608; Sat, 28 Sep 2024 18:48:34 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 33D81402C8 for ; Sat, 28 Sep 2024 18:48:29 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-206b9455460so23378575ad.0 for ; Sat, 28 Sep 2024 09:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727542108; x=1728146908; 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=le4GjgP5SCWBlNQZ0/lUAXoHeoD0MAUe464ixNio0Ms=; b=1sw9npz1Ifu/bKS6zt8ZYEjEyIIAIyqIy2+bhVZF5DUcTwg197e9nWxetQvUnAbpW3 AZc2kd7VdmzHEYuqCsKekSpmYDNICDWcjCf2p0CSjWJItFSCb4CHoeg3kC48FZKcKTO8 vah9vrlQa7Hcju+PJ5so7AMB5GukTvPhHA6cXN/LaGD9udqP43/v1kt3SqpLw5XCCYdL VlwtsTMQkoZHnlvh8SO/QhqcvzgfZnp223g0/7Yf4nLkqFi4BcJk6gUfRF3CwZFJgSYs ltXl0BxXZ4VlrW0WHJ/GkInsl4YQvvxA6UyXGuLqBmxmREsk/8dqh36r38IxiWrqiyMa kY1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727542108; x=1728146908; 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=le4GjgP5SCWBlNQZ0/lUAXoHeoD0MAUe464ixNio0Ms=; b=r0ULLFvXSJmHw9dQQt3tU6i5fIRR4knDwFEE2kWuIiO5X6x+0aQ2gVY3iPexcGZnsN 7287boMQlgRC6iVk2ZFfpBjVvzuuItRd6T7zv9EiVgm3vkT7ON4F0Yfg+f5oIzVAOgN+ otcU9FC3u+Lw9FRSzJjXXy710L/7ltxMNxqObChrWu6F2CTW5wElqcr9HiekEGDCR3Z4 eLZ3M87CFC7ou0B1oDmjf0myJpFKHK4kj+wisuzCaSb7/yHI1Cy5lTFlQbIasg7yjCz8 wpcz4ozU0AlEelhfx945hXs0xpEzV1VlpOw0VIdCyA9oImeTlmaO91kozPqn3ej0XSfM TbnQ== X-Gm-Message-State: AOJu0Yzw+7CRrDKbLVGpgr6S/pEoflS9f8LbBQe19jXvuPERmMTHhveB 6CjeZCXYUSBEdk6KzPxkkpxbLuj2t3cVHHpGkASgMKavE6lnf5sXWj9vW2EfJ1alG/VyNu21EUV e X-Google-Smtp-Source: AGHT+IFf09mriK0E7T+aSA5dVZ6M55ZYnnCDZ0dcJcbmHQi0jxQPvEzJ8kzZF8pBQ/BojzU2vypIuA== X-Received: by 2002:a17:902:d4c5:b0:205:6121:1b2d with SMTP id d9443c01a7336-20b19bc04e9mr159903495ad.3.1727542108317; Sat, 28 Sep 2024 09:48:28 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37e47c7dsm28854015ad.216.2024.09.28.09.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 09:48:27 -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 v2 04/16] dma/ixd: fix incorrect free function in cleanup Date: Sat, 28 Sep 2024 09:47:12 -0700 Message-ID: <20240928164814.861933-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240928164814.861933-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20240928164814.861933-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 --- 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