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 0EC7C45A6D; Mon, 30 Sep 2024 20:46:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE76340652; Mon, 30 Sep 2024 20:46:17 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 594C1402BE for ; Mon, 30 Sep 2024 20:46:13 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-71b00a97734so4070306b3a.1 for ; Mon, 30 Sep 2024 11:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727721972; x=1728326772; 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=mOwVCkX2uGN90xMp+LoOW9bo6AtcdtIYhlACZKYGecogiZk8GsmBeq6QXIm6Uv5ETu C5jx1RQMQKMfEqLlvCBWdKkj2FDm7vbQ8NsnhtLQUNsOfDsABIhY5JeorP4TOGDgxT+9 ttfufKCVVk6Nak61TOLRgJczJQtL/1uiYcUByLkVW6tORbAGx1tEJTgE0AlfbGcNKzrK hRCkRptlV73TAfMBkRyU5MMont8Lt3eZD2ih8eZ1EsjoW9P+Ujr8Tizn6Z2REZe8MgX7 gS14uVHBsrt2ClDbc6B2KqPeG1wcM5XD5ozst8yFLPSszBgJbwmu/Y3R5/D9dGCvzpbr t71w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727721972; x=1728326772; 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=jYNe9U+HUaKm4xYrxKNRn+FKQu61Is0VVTrscGYj5nnSQHb+teY415Kf1NF1Mu7ASo 87Kmk+maZVcmIw/3ByUkwex3+nqFCIx+952GxjYV5taBCnNcyQcKGl0RAHbpqXE/XQ7D E93/X794BRSS7/YwLTQzYCChkKdJ9RUgZfZ1k/Ot+YeSrPQWyOedfY1Ks4HPAeeX1eHA 3wrXy+qpgJDAQO/vn5lGB/pnxQ3zWb1i4qhq259JddynT1TGYgOuTa4wK2ALUvAqHVNa kvYdZMrScK+j1vmTgJdpTf0ix8XNDbjvCZmJilRBWMcbbNZ5nV7Avmc/Uj5zsemTuCHZ Xt7Q== X-Gm-Message-State: AOJu0YwJSktnFiN731DYbrperdeIxoOZ9f+YaF1rez/hW7K+a3pO77wq iiOL8nn1SgBLq+4lDvXtqxPal0l7P6TS9EYfAl8b/1vH6+PVJ8kVDjHnFzNUUH2WgORNv7PRHYm UHhAIfg== X-Google-Smtp-Source: AGHT+IFVqzpEys7lug3j0al9AYUzuIzRR4il8XoM1LUyrincmla240QaBeH+/0q+5OE1HT49mIiCsQ== X-Received: by 2002:a05:6a00:1702:b0:719:1df4:9d02 with SMTP id d2e1a72fcca58-71b26079192mr18715070b3a.25.1727721972599; Mon, 30 Sep 2024 11:46:12 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264bcca6sm6581895b3a.78.2024.09.30.11.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 11:46:12 -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 v4 03/17] dma/ixd: fix incorrect free function in cleanup Date: Mon, 30 Sep 2024 11:43:57 -0700 Message-ID: <20240930184600.7092-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930184600.7092-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20240930184600.7092-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