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 9851745A7E for ; Tue, 1 Oct 2024 18:37:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E306F40677; Tue, 1 Oct 2024 18:37:27 +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 F4230402BD for ; Tue, 1 Oct 2024 18:37:21 +0200 (CEST) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-7e6cbf6cd1dso3930472a12.3 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=Vkg2PleyeWk3hgub9/mm5vkwTU3HHM5XOnyzCCObnB1MsEmsMSQjnmeq0eBFBAez7z bg8v18xobCx5hLI0yJAWgRNxXHmk8hrolxzg2xT+b4YbwJUkfTZ5o4+qCwRhSVxghL1X 8IpxtX132jETntaH19bbQn9ZW1uhwj0p+9kqUA4FZzozi2g5CZ1gvTkR8ch/3JpVIEwI nQWLLjZSwcs2xQ3lI6TLzAp3SDTA4WdhhnrxYFRitXvCPawXB6S1gz1RCKvlGWHK+hGP gPOCYGiuAHFa35HnXjmDOr03RFMkvkhMF/Elqua/LYRk4htnNKkLEBgyIdNIQm3qr7e4 c8BQ== X-Forwarded-Encrypted: i=1; AJvYcCUXXcY3NP4zBZGv2qvexOh24WCapjxxitnzEuPgVWCOtkpb56JC22MCVaGwPc6TyWYXuii5wdo=@dpdk.org X-Gm-Message-State: AOJu0Yw2u513NOctpuEu7mZtJZPcMU7cjA7xHXMtUdi+u5PDE+7TDoxj 3upDFMr/nRn1Mtjv/GFYB6cbQGQqcDWYYjMclpfZSUVo5o5y5QAUUKJmsmUW8bY= 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: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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