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 7F7FA45AE2; Tue, 8 Oct 2024 17:43:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52ED140BA2; Tue, 8 Oct 2024 17:43:19 +0200 (CEST) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id A7E294065F for ; Tue, 8 Oct 2024 17:43:15 +0200 (CEST) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-7ea1b850d5cso770103a12.1 for ; Tue, 08 Oct 2024 08:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728402195; x=1729006995; 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=sMVbTgs7uNhYejwjHhjohbVJWZHHSAzpxmwxbsoCr2Y=; b=2+Iagrahct0Twb3gZDmobbiVdeqAAA9svezZ/O/UWJpfMBD+7/+IU4IXM9mzkegzgN qJRgmzQ/3Dk19H/iIAgjeWwGIx/kzkoF2n6xDxYFtPgEj4CMIE71LKZ0wSmgB5fQvw/E BXaXuwPqrfTAGJVrKtooeL//0ppUpUd/15zvm00Jmb7VRUdHo1ikEhbpg46QmHhgJuSX PopgZKURXXPzyOvsriCasFEB081LXH1JldY5xRL5Q5aJxzgc7URRoSadgIVYpMH4m+j7 9yTBoquYAC+SDb+9EWDnl3neCT1+lSTYi8ObQcfBYvdRPzBM6pADslRzbcwN4BOEsxTs WPXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728402195; x=1729006995; 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=sMVbTgs7uNhYejwjHhjohbVJWZHHSAzpxmwxbsoCr2Y=; b=rfCkqY8fOKzLF/ksNDYx5nU7/ZLgoNFpSE9ftL1s3tbm2clD/h6juJxzABlCfYflEw LhGDaDw7o8jPOh1Kb+IRzrxQneEjoBiObFnvIQ03gUWozUUB9XpUUGi66tnLKvbO1JYv ujap+FaWPTT5le5EMDq3aFVCLlgaU8r9jW6q3IiVoyYzx+X/Wv2/gMYmKxGyyXFgWOO9 ojYow0J9PweGMxAzp7to6qUgv7E67pUIi07Yvr2r4fqLQFMLaZyjL5uQ2eEjJIWsxcth Rmh5HISQuBR2eaMRKNRztx8LJ2PqsC4aM26QOZud1Xh7Ve3s5NK2H0H7hlyrZPUMkdIO jMFw== X-Gm-Message-State: AOJu0YzqJvByuRdAPyLzhpGytGsHwm/Tje8BKU3wuaCZDzrbvlHkAnT/ 1HJ3BYnxW554OTP/lWk1LjoTQoZtFyRw4+YNRbwRm7S51s6X8z6OrBHOkbcCpmh1fO7eAFoCczB y72Ct5Q== X-Google-Smtp-Source: AGHT+IGbtX74BWqHhYO/ivjAX2rkC8jwUkWwAKaG4znlpDi5d5Fm4Koqo1vk5rqRyymccCJx8V9VOA== X-Received: by 2002:a05:6a21:3a4b:b0:1d7:2249:68c with SMTP id adf61e73a8af0-1d7224907f7mr2231193637.4.1728402194889; Tue, 08 Oct 2024 08:43:14 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71df0ccf01dsm6293527b3a.70.2024.10.08.08.43.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 08:43:14 -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 v8 03/17] dma/ixd: fix incorrect free function in cleanup Date: Tue, 8 Oct 2024 08:41:33 -0700 Message-ID: <20241008154301.66192-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241008154301.66192-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241008154301.66192-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 60ac219559..6ed03e96da 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