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 BD74545A5D; Sun, 29 Sep 2024 17:41:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80F60402E9; Sun, 29 Sep 2024 17:41:26 +0200 (CEST) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id C5B0E402AE for ; Sun, 29 Sep 2024 17:41:21 +0200 (CEST) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-71b070ff24dso3208720b3a.2 for ; Sun, 29 Sep 2024 08:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727624481; x=1728229281; 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=rCjpsfZcsTH2c2CmZoUXE3xS7mjp2VMMBEElHm6RrX7eUi6jQxBzrxPTy1WIN/km3W 0exH4rNmGOknv4OkbJ/amSUFvoYbIV9dtiTptl1CwNBS+bWPJ0GT5l8iWo+M69wCIYW1 A6H6p/nYQkoFE2YLAPfTu/diAF/y8l/ComkOneQC9lhTWnQBflNti6Bnsai+rhAPv6s0 RoB6O+frRnRxjQg1v8yhSjiMVXh/aVrm5hlC1mJBMvmfGGMep09SlySy4BOj8IOG2WiG oI+34B7Rc95Vy5KU3EFsocaVPDL/aCjEdsz+L8x77eGOcz7grDgqdg+0gMouSsdir2kp LLCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727624481; x=1728229281; 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=eQDkK3d22KVeMjmgQLg+SdbhZVp/6jj66J4g7hffFinw/Jgj29YFTxMrRhkuI4/nUI Zsw/rCT6U9XASZoUKtp8I8A98Cm4ZBjq6Gtbk4/m+4XiNAnq+qxZSk+zgMS/L/tziVKI rHWACyIAdwNC7YD9shoxOQGusuXxhRa3xA2q5LQ6MuHLziJhbgYH7B+43dXfWOd1T8zE htlFhbz5FvyyglPVRDBnplmbkHL377+mCi6kopqKTLCgijqs3ogwFvP9MyxxRuxLnHSI Ru6WTnUqW46IVCQ+IlZ0fs41MGznvr7K6YImps56dUsYpbqbumjNo6cQACWYQ61bru8B n4Vw== X-Gm-Message-State: AOJu0YzO4o5KRsTwETYK9hYFOrxCUBqjoRDI3UcEb14iG7AULJzHOoZc +YC4FYsA25K0CBY5tIvl2aqey0ibR16ZOOFrgGj0Rez3M8+bOQoD/3xVCAFsJBV0DJyNKCiQ2PJ L69A= X-Google-Smtp-Source: AGHT+IEGyUZrINjIeOG1Zgb8YTnYjeNsdA4PkLyHE+02hb9WFK93Z46H8RKwMbHLqPuqUq3ZB0LULA== X-Received: by 2002:a05:6a21:a247:b0:1d5:135c:60b7 with SMTP id adf61e73a8af0-1d5135c63bbmr3892430637.45.1727624480935; Sun, 29 Sep 2024 08:41:20 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2649c775sm4707416b3a.29.2024.09.29.08.41.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 08:41: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 v3 03/18] dma/ixd: fix incorrect free function in cleanup Date: Sun, 29 Sep 2024 08:34:28 -0700 Message-ID: <20240929154107.62539-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240929154107.62539-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20240929154107.62539-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