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 B26B545A9F; Wed, 2 Oct 2024 20:39:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66F6040658; Wed, 2 Oct 2024 20:39:34 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 381CB402F1 for ; Wed, 2 Oct 2024 20:39:31 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71dae4fc4c9so182596b3a.0 for ; Wed, 02 Oct 2024 11:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727894370; x=1728499170; 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=tBBPL+/z7e9VeBIKqsGN9bs04l3a+NCgquqe1XtteMSwsS83SJbPA40L9yehKj+fVN iDr/8GQ1uYH/s3nDiWdUIGu3azvjzNr9+BOfLsBxIPPxhDRUtqDbpNrw2FdIYr3BGCff mC+VEJqgan0EJsp+KHerEYiRF/w3G5R4T3m2MekShlFmFWRvQLGVSDF2F85JtgHFT0d6 T3PvMrUxLniJgvc2OdPlse7rxct/w8cfATjeqbL45oDTVH39uK2gzB2C3icy6dYXe9Vu 0e5GJyeR5fJ2WYYz8+KjEYO7uxfMtNS4D+d0wPPeVl9xIj+2Af2Lk1Re0rSBRPf4YlaT VenA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727894370; x=1728499170; 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=e+drIzWh5PKJUIFDXlvsKcDIRaR+oshzXIRZMAbe6urtGqUmRPZPL1r9rOgzKR27b/ 1cUB5m89FgxA01ePA/yN3IY8L+9QDKCzdqLHl3eiv/99TsGL62Yltd7+LuteedyZOR8k VEEx3smP9lg7Nd1IxcIhLQmBr7t3dK+6ERS/dG4J0y5wnjqSL73gLrV2BF7Ssw2JVYtn yW3H4OhrNTTPgjy+Yw1YA5N7DJGZT+iDLv2eWhtI5IcB2GpE0Nk1GWoHCcm9ubo9SmzY nLqjDfzW8ZLztp76c0hP7nvApFvmnpagt9tJNR4kGEsGxpbmxQDcGFJYjChS98oH23mc iqLw== X-Gm-Message-State: AOJu0Yz2irSdIgh2W2tmyxdO/hI2Ecn6F9yvA/WcuZtJMn3W2PZy38yn xWKfWaJoVqF8Ewms6p68mjbhxBXqUF37kkD06si+/gHGja/zzIJnLpQpVAyYgSddAe2J+nBElyu f X-Google-Smtp-Source: AGHT+IHl/64RPH1RrAl43ldNczAfTbwCJvvTP+ZHxDcc2qfzAjyjBnjkeBaSUpVn/s25E395vfB0cQ== X-Received: by 2002:a05:6a00:181c:b0:70e:91ca:32ab with SMTP id d2e1a72fcca58-71dc5c425aemr6703718b3a.6.1727894370313; Wed, 02 Oct 2024 11:39:30 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2649b0bdsm10104362b3a.34.2024.10.02.11.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 11:39:30 -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 v7 03/16] dma/ixd: fix incorrect free function in cleanup Date: Wed, 2 Oct 2024 11:37:41 -0700 Message-ID: <20241002183918.161656-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241002183918.161656-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241002183918.161656-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