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 E8F6945A48; Fri, 27 Sep 2024 22:48:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8C3D40615; Fri, 27 Sep 2024 22:48:04 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id C49B2402C0 for ; Fri, 27 Sep 2024 22:48:00 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-718e2855479so1889672b3a.1 for ; Fri, 27 Sep 2024 13:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727470080; x=1728074880; 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=X9COsGVYuxzkewjTlJLsY85Pb2DCSyqvk4MnkO+EczqczVgKI/YmrQ/S9J+L43zace T0NQMPkk958/KUhrG7RMPNOoyD7Sgo9MTNSCiRcH9CDH1HmeXZu4pPsntdQpfA44JCgv 8lRUSSQBFuGDt88vD9QKovZKo1wFFBO6fO00ehNgBb2KnKNMNEG703qEO1v1BloOv/Vm uNzRrMAQZHlkFd7e9yZFFEHJiWAPUCV4J0bdUwTxz3DqhswpMJKYWmevtqVF4W0bziV+ VROIzGNlBY30TrV5oSlJMAzO6BWKUAGTXn3cK9AQ/9C9UIT9UAaB7gc2zBH7ymelS09v dwsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727470080; x=1728074880; 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=AEzkGZmW8Mry3zOdQbDEACqDwOy5ulVo3pxQmp8ayhkYmwdWts7FtbPUv2Dg5hIWCk Av6TW0QrMqXUWewxPM2O+U/bx+frgrDvTOMueHCf9545HF/XbxbVZZyt8RFO6KsXERYH /wAkDgLuTuD40fquxjVyTGqszyroxDf6dByFb/QMcfLDHBtiX9ifpPIGqLHIMbg8yCC6 2SrN8a2BlHFsqG5VukQu35egaPLkY3inup/gcuo2pRA4LwWg8mGfWliIkcHPHdehFRPE YTqSwYoaBR2IPTbjr+QECBbFaTQuTA5H1TX3Dac0tzGd3y+qsA+ANGQzlXGNuVBJKIpX PHYg== X-Gm-Message-State: AOJu0YzwZjNmmWQtP3siIEHcIt/oCI0mySQT/7n15QvazI1nHJkYDhyw 9hrPUdbnr5zAD+2BbthP49qIppZJzxZeSqN3v86EMOIfMxVzNSwY+q5Q+4s8JDAT89wLZs8yIbG s X-Google-Smtp-Source: AGHT+IH2wKhy4mSxHwu9it2DiIkUm35ePePfT98AtqYYyLhZTNRglx2RIGjOgOcpQalZGK81Su6jLQ== X-Received: by 2002:a05:6a00:2e87:b0:717:87a1:786 with SMTP id d2e1a72fcca58-71b25f3aed3mr6391784b3a.9.1727470079787; Fri, 27 Sep 2024 13:47:59 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6db294533sm2036531a12.12.2024.09.27.13.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2024 13:47:59 -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 04/16] dma/ixd: fix incorrect free function in cleanup Date: Fri, 27 Sep 2024 13:45:40 -0700 Message-ID: <20240927204742.546164-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240927204742.546164-1-stephen@networkplumber.org> References: <20240927204742.546164-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