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 10E4245A7E; Tue, 1 Oct 2024 18:37:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B260740670; Tue, 1 Oct 2024 18:37:26 +0200 (CEST) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id F35E140299 for ; Tue, 1 Oct 2024 18:37:21 +0200 (CEST) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-7cd8803fe0aso4006286a12.0 for ; Tue, 01 Oct 2024 09:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727800641; x=1728405441; 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=a6Ta41qtD30Nwn+ldXDjjjs5Pyola6h0277xgm5jwAj4+tt+ygaeZLXblZ6yVcHWmv n16Tu9vIA0sz4rfAhyyirjI7zbgbs+qFi4AWb4Vlm9Jds/mlOcNwhSFS1RA85KXjH8VX cAhrxT6fPvySkQNbV9MoWzgLjwpRpCoxyy4A43fVVGliPjv6xpaclKfxrU3X06W64zK7 YbwB0q4CoRe3lkn6H4ctM0Lc+9rUnqaeQFDVlB61dJw34JcGpJTju6CiFSXRUbEvuveh 1zmEmbdD/jl+GuCE5kOSsd7ZMmniKJmIr6wKzbBz6i10+vSMBP3xW+w/czKO2310hvf/ +PeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727800641; x=1728405441; 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=K7eUSicmAXNfqrV/FIXV5286IXEWAqXvmcs0zFK3Rn7bH3JgB+/PhrUbeo9vcz4t0b X9tA9VGPFHEELd/ja/KRFY7BRSw31b5sz+bysEbtCB4TdtrVnF53JyKn1go/tag1E6Rw oqfNT986j89lcbcf2BnwN+WXWAjf7OVInG6KxFjbpIqqMbJjOxwjoZG5P+4ZkvUujbN3 40evohuZlHxI6n7VDSzy05ZGMDB3EScV0LGCR0KvfwKt0usPsmT+7lpcimowZI5L9efV 70CxIXJXQI50xSHmqwMokOEPc30mjdwBcanT5va4BH9xFkGam0nm9WDtYo59+Esmaqp7 BuqQ== X-Gm-Message-State: AOJu0YzdC7wavxxyqojzu5IkwFFj9c3OHhuUDBN30fCGCloNm96wY/ps YrMmSrXMxM8NSM447YpLseb5rkyz0pY07Rk28Ip5wBXClhqczT6WA9n1qtPG/qJPqOimOt6yXxg RR3o= X-Google-Smtp-Source: AGHT+IHuPEdywFK7w+H3JYi6PSz6OP+tcTUq9PVUdAt1HHuTmecIRZ4BB4OJrQo+vQz2NIxp/m5c9Q== X-Received: by 2002:a05:6a20:2d20:b0:1cf:6c64:ee6b with SMTP id adf61e73a8af0-1d5db1a98e3mr479111637.27.1727800641203; Tue, 01 Oct 2024 09:37:21 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b26518818sm8213565b3a.129.2024.10.01.09.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 09:37:20 -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 v5 03/17] dma/ixd: fix incorrect free function in cleanup Date: Tue, 1 Oct 2024 09:35:26 -0700 Message-ID: <20241001163708.355128-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241001163708.355128-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241001163708.355128-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