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 E477B45A50 for ; Sat, 28 Sep 2024 18:48:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD13440656; Sat, 28 Sep 2024 18:48:35 +0200 (CEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 35E21402D4 for ; Sat, 28 Sep 2024 18:48:29 +0200 (CEST) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-206b9455460so23378595ad.0 for ; Sat, 28 Sep 2024 09:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727542108; x=1728146908; 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=1sw9npz1Ifu/bKS6zt8ZYEjEyIIAIyqIy2+bhVZF5DUcTwg197e9nWxetQvUnAbpW3 AZc2kd7VdmzHEYuqCsKekSpmYDNICDWcjCf2p0CSjWJItFSCb4CHoeg3kC48FZKcKTO8 vah9vrlQa7Hcju+PJ5so7AMB5GukTvPhHA6cXN/LaGD9udqP43/v1kt3SqpLw5XCCYdL VlwtsTMQkoZHnlvh8SO/QhqcvzgfZnp223g0/7Yf4nLkqFi4BcJk6gUfRF3CwZFJgSYs ltXl0BxXZ4VlrW0WHJ/GkInsl4YQvvxA6UyXGuLqBmxmREsk/8dqh36r38IxiWrqiyMa kY1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727542108; x=1728146908; 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=swwIvn+bvYrhLvFXrV0O/HgnpEDKzAvKoJNGs5auY/UsjalQRg75RGPJSievErNZGa HiDcGX9NY0kRLeDoJVXC+OJEC82W+vvCPPg1INR+r3lHv/cxhgo2Ajj5RD9y+7Xvnc31 qRd9huSeYA8YaCYfg2yIeKBaoX0U6dA944Ht/yxhr+04r0Z3DN5Ak5NGAiH89xtVcsSu IoQWc2DSQvCr9fKxF/1Yc3MyfEodQi3wVCN6mVlz4DvgISq2nwoOBjuvI30ORTQKGFpf 5Fq2EMhqVIM4xfekglMWjxARmvZ+mAHvNX2o6x9eWmqN/GBSidJGtM7d9w43NyN8vRC7 ySJA== X-Forwarded-Encrypted: i=1; AJvYcCV1Yg8q0S93NCak6xMAkAbprAhpy4qPKlRfgrMUaoUjQPNk01UdImsC7Qz+HSNUqcCu2ypa2UA=@dpdk.org X-Gm-Message-State: AOJu0Yyc0sK4/bV2X612JV/SX5kAFJlBRQ7VvDqVm8GIsmdgNBwv/utK SzYmQpiRIDeiffzP8g/pSbuIdD9YH5n6WCk8NO6B4V0iIT7eC8K6FyNPXv7nlvw= X-Google-Smtp-Source: AGHT+IFf09mriK0E7T+aSA5dVZ6M55ZYnnCDZ0dcJcbmHQi0jxQPvEzJ8kzZF8pBQ/BojzU2vypIuA== X-Received: by 2002:a17:902:d4c5:b0:205:6121:1b2d with SMTP id d9443c01a7336-20b19bc04e9mr159903495ad.3.1727542108317; Sat, 28 Sep 2024 09:48:28 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37e47c7dsm28854015ad.216.2024.09.28.09.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 09:48:27 -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 v2 04/16] dma/ixd: fix incorrect free function in cleanup Date: Sat, 28 Sep 2024 09:47:12 -0700 Message-ID: <20240928164814.861933-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240928164814.861933-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20240928164814.861933-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