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 9604245A6E for ; Mon, 30 Sep 2024 20:46:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F27A40648; Mon, 30 Sep 2024 20:46:17 +0200 (CEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 5E0C7402D3 for ; Mon, 30 Sep 2024 20:46:13 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-718f4fd89e5so4227983b3a.0 for ; Mon, 30 Sep 2024 11:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727721972; x=1728326772; 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=mOwVCkX2uGN90xMp+LoOW9bo6AtcdtIYhlACZKYGecogiZk8GsmBeq6QXIm6Uv5ETu C5jx1RQMQKMfEqLlvCBWdKkj2FDm7vbQ8NsnhtLQUNsOfDsABIhY5JeorP4TOGDgxT+9 ttfufKCVVk6Nak61TOLRgJczJQtL/1uiYcUByLkVW6tORbAGx1tEJTgE0AlfbGcNKzrK hRCkRptlV73TAfMBkRyU5MMont8Lt3eZD2ih8eZ1EsjoW9P+Ujr8Tizn6Z2REZe8MgX7 gS14uVHBsrt2ClDbc6B2KqPeG1wcM5XD5ozst8yFLPSszBgJbwmu/Y3R5/D9dGCvzpbr t71w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727721972; x=1728326772; 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=UjAhteuUXHyLllDHJtBMD2NVCSl+PjEZmUc2PG1kKLQ89i/Z3pOrMUxRQn0w9Dgn1w 7w72tMOtErnzdTkyKzvdHqKcj3bxa93J2X2ZMoLnJAb1n17Hb/TEjb2756pL4XNtuZ4/ 0BUQGBDZzSAZC5OEvHjm1LF9wOygkK3bI0l4ghRhV5BVXGAVk0ti+NUyAVWEeZT4Xddw njDKPfQD22LhpMTTy8rKwGF9rk+Ep0r1Rd6LNOKH89oezQgSdhlaEKQGikfMwiktVvBg 98LatBBVOboWH+42hntDreR9bRZTaxy4A9rDBuSdOL4qsCPBetk/+/2dRmkzDmbB3o6f U9EQ== X-Forwarded-Encrypted: i=1; AJvYcCU6dfApl5CpKH59Zb8sWhqxsxr4z9cSV1ND+ph8SiFenox2IpnvpFxSXldRIg3du+duJwR3CXU=@dpdk.org X-Gm-Message-State: AOJu0Ywe5qG3Sn9D0/D5XEps88NR/b8daYCgJSLfNbAfeV+8IMgpU9Wn 83otZFmaVVMOv4XMi2qRFuB3jVkdExIDNl70dfSt4/SRVYE1zX1e52L2sGtKj24= X-Google-Smtp-Source: AGHT+IFVqzpEys7lug3j0al9AYUzuIzRR4il8XoM1LUyrincmla240QaBeH+/0q+5OE1HT49mIiCsQ== X-Received: by 2002:a05:6a00:1702:b0:719:1df4:9d02 with SMTP id d2e1a72fcca58-71b26079192mr18715070b3a.25.1727721972599; Mon, 30 Sep 2024 11:46:12 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264bcca6sm6581895b3a.78.2024.09.30.11.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 11:46:12 -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 v4 03/17] dma/ixd: fix incorrect free function in cleanup Date: Mon, 30 Sep 2024 11:43:57 -0700 Message-ID: <20240930184600.7092-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930184600.7092-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20240930184600.7092-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