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 48A8E45A48 for ; Fri, 27 Sep 2024 22:48:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A7DD540647; Fri, 27 Sep 2024 22:48:04 +0200 (CEST) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mails.dpdk.org (Postfix) with ESMTP id C5F1D402CC for ; Fri, 27 Sep 2024 22:48:00 +0200 (CEST) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-718d606726cso1919502b3a.3 for ; Fri, 27 Sep 2024 13:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727470080; x=1728074880; 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=X9COsGVYuxzkewjTlJLsY85Pb2DCSyqvk4MnkO+EczqczVgKI/YmrQ/S9J+L43zace T0NQMPkk958/KUhrG7RMPNOoyD7Sgo9MTNSCiRcH9CDH1HmeXZu4pPsntdQpfA44JCgv 8lRUSSQBFuGDt88vD9QKovZKo1wFFBO6fO00ehNgBb2KnKNMNEG703qEO1v1BloOv/Vm uNzRrMAQZHlkFd7e9yZFFEHJiWAPUCV4J0bdUwTxz3DqhswpMJKYWmevtqVF4W0bziV+ VROIzGNlBY30TrV5oSlJMAzO6BWKUAGTXn3cK9AQ/9C9UIT9UAaB7gc2zBH7ymelS09v dwsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727470080; x=1728074880; 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=BA+rk+CTzlscjG1vJROYLME+ibl4WLZrpfrxSAImrLbugpMS2ZFP/XdHhMpEg6Oru/ vOx22UHcJf63J5jCbnAtjFHraDC+nN88fBsYj/NIrqR54CAvIw2QgU6YOX/rjRL5nyFK m5RGrv2lcjgcWCsSRO4FoHqoxAUae2iVxp856dStQ2jkSEUxNaCx72ekJ4jMnG5mejUu hg5OvySHkwhQRS4hOEX1IlcwWNvFdzqj35bISXhIwoC9yCQSJ32yuSzBp983SokfLgEu +eVkXliRfAjchgcsqXt6ai3lTYO+pIin/R4SWYqpp4jgVRfBGd5yGbI+7tgoB1O5+FmB sPYA== X-Forwarded-Encrypted: i=1; AJvYcCV95GSQEsWbj2IEjX/xrKVMIOQuNdSpc+U2uo+k6xQI3yLeF3CvLvZPja0gtVjCOdeTMQSGc9E=@dpdk.org X-Gm-Message-State: AOJu0Yzv4D7oDKof+95zsw1j86y7SIXmacWYAg4L9z9yFxbK0Nx3vUBe JUpyJMz6FNK42vaqzLewTP6otX6lEtFFC6TOCtW/BwOpbl0kTmiIp+NmtxkzqOA= X-Google-Smtp-Source: AGHT+IH2wKhy4mSxHwu9it2DiIkUm35ePePfT98AtqYYyLhZTNRglx2RIGjOgOcpQalZGK81Su6jLQ== X-Received: by 2002:a05:6a00:2e87:b0:717:87a1:786 with SMTP id d2e1a72fcca58-71b25f3aed3mr6391784b3a.9.1727470079787; Fri, 27 Sep 2024 13:47:59 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6db294533sm2036531a12.12.2024.09.27.13.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2024 13:47:59 -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 04/16] dma/ixd: fix incorrect free function in cleanup Date: Fri, 27 Sep 2024 13:45:40 -0700 Message-ID: <20240927204742.546164-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240927204742.546164-1-stephen@networkplumber.org> References: <20240927204742.546164-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