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 41B7A45AE3; Tue, 8 Oct 2024 18:49:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A93840DCA; Tue, 8 Oct 2024 18:49:00 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 37F824021E for ; Tue, 8 Oct 2024 18:48:56 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-20b6c311f62so52068575ad.0 for ; Tue, 08 Oct 2024 09:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728406135; x=1729010935; 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=cdMuRS48C6r63vFhpcCKHu+QdBRqRTClSROvUlQshaG6RrUtS/qG/Oc2KocMu0Uxqq N+f5znNlru2DTT/wpfE22tb1f8YdGOSbd9IgtNJUjIDn29MrCFZny5kKtjZfZneurMJj Ps5ySOF2Lykwu5qvT6exItFSqvM4w8EWQ5tkUM1sBnKvAr2eqyJOb+1BWa0lisHYUswm xEMRCHIXy9Y8h/iSylaLRd+G847xSHu0xFeVGosPxCq20+8LRXpuubCRFNDRYc6xJrDU yBgc4RcOuPDWhGMpW0gpXZs4t+7Q25IJo7Hdq2dKKjQD5IEnuYyYSzfKsd0HHOPVnH7H +5ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406135; x=1729010935; 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=BL0Vrom4zhqK0JcY6SSLU+XsvFs2xxiCe7LDtF6nILD1dKc4W7P/3Ndgx6T/vzf5c3 VSVoaDsHOrBYg3tLpNtJRj4lb/nOfWUCkQ0vwqupx11R1TloWNKs0oTb5S6hQ5HIbFCz 5d2bQ5iDpUPjAUnYrQ2rGmnVdyr7DJfj6/RDdYiRgWl3diFvdkZi6qyypPT5GQQRWgz7 PbCuBJHsgNcXm+q4ovu/s9YuNITjJmSfAvFWk8UBWXU0tOaCWkFg3tngVoBABjT6jmmi 7pIfpwiPmQcLt4R0L0jIGBQ7NlZ1NfweL0XDhP/4ogsDBWMzvt4J21F9SQjwCxAD7A18 WRUA== X-Gm-Message-State: AOJu0YzBIBI+Z+aPfln81w7VBp6vjiVLcfmhI5YLL4BBsIzkTsimO1Lm 5j//O4D4NUWihit+tYVcKY0zaQ88S07pce/Tg8KGdkP17jO/1dkXiolfJ4P6gJhFJMooxyOZi2c quO2xhw== X-Google-Smtp-Source: AGHT+IGZlq363ORX1Ao9m8WtLr29YRabUHtNEwDrHmK4MLUECVOH9BedqsF+qOX8swuAW70LY2ayeg== X-Received: by 2002:a17:902:d50e:b0:20b:8907:b597 with SMTP id d9443c01a7336-20bfea56bccmr215805565ad.28.1728406135458; Tue, 08 Oct 2024 09:48:55 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c54056bd9sm13832965ad.85.2024.10.08.09.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:48:55 -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 v9 03/17] dma/ixd: fix incorrect free function in cleanup Date: Tue, 8 Oct 2024 09:47:07 -0700 Message-ID: <20241008164842.139045-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241008164842.139045-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241008164842.139045-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