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 7399645AE2 for ; Tue, 8 Oct 2024 17:43:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6886840DC9; Tue, 8 Oct 2024 17:43:20 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id AD2204067D for ; Tue, 8 Oct 2024 17:43:15 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71df67c67fcso2159000b3a.2 for ; Tue, 08 Oct 2024 08:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728402195; x=1729006995; 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=sMVbTgs7uNhYejwjHhjohbVJWZHHSAzpxmwxbsoCr2Y=; b=2+Iagrahct0Twb3gZDmobbiVdeqAAA9svezZ/O/UWJpfMBD+7/+IU4IXM9mzkegzgN qJRgmzQ/3Dk19H/iIAgjeWwGIx/kzkoF2n6xDxYFtPgEj4CMIE71LKZ0wSmgB5fQvw/E BXaXuwPqrfTAGJVrKtooeL//0ppUpUd/15zvm00Jmb7VRUdHo1ikEhbpg46QmHhgJuSX PopgZKURXXPzyOvsriCasFEB081LXH1JldY5xRL5Q5aJxzgc7URRoSadgIVYpMH4m+j7 9yTBoquYAC+SDb+9EWDnl3neCT1+lSTYi8ObQcfBYvdRPzBM6pADslRzbcwN4BOEsxTs WPXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728402195; x=1729006995; 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=sMVbTgs7uNhYejwjHhjohbVJWZHHSAzpxmwxbsoCr2Y=; b=pduwbHGGoLzKABm1cNUBsDMXwTi6s4NjSXUTTR0v57vw9oEAN2hdLcuJt3E4ZE/ZcY rCjtz0zk4L80PBgMzVcI2xibYY2z8KLm5spFVAgMRSZ/RTPSHNpO5Q+fJrvMIqXHkH7D VzY3I0KKYRdgbU1VYb7Yz1ODJ/XdLBtCJBDooahTUP0KIkN7ocKTYUgtOKCl3cAD6jAB WG3XkpGCwqzgESVfkR3WO49Uv52DY6htdu7f1aC4BmsnwIfNdAo3kmh3ye7sw1yIaUgl MIMbuIMFmLHX4U4S6cGPsgqCVIi3XMqtzuoD7Oz6jZDRLycgxQHVzkwI8WwpqDMDsi0u uxTA== X-Forwarded-Encrypted: i=1; AJvYcCUIYMe3J/ol+EBdNHhZbtfL+2lxm1rlcBMguqXIkjtYaFLTwosA4TudHRg6PjBj+cJnKIEEoiw=@dpdk.org X-Gm-Message-State: AOJu0Yzttv63v9DO/2xMB2vShIBfyJ4EOhw2nCRmqw5/GWfiK17cp+dH WdVNvyinWL+ArBBY1Xo2lCWYA3XOAgfNaZnbkKp8Xst2gARWrHkrXaUevK9J8uY= X-Google-Smtp-Source: AGHT+IGbtX74BWqHhYO/ivjAX2rkC8jwUkWwAKaG4znlpDi5d5Fm4Koqo1vk5rqRyymccCJx8V9VOA== X-Received: by 2002:a05:6a21:3a4b:b0:1d7:2249:68c with SMTP id adf61e73a8af0-1d7224907f7mr2231193637.4.1728402194889; Tue, 08 Oct 2024 08:43:14 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71df0ccf01dsm6293527b3a.70.2024.10.08.08.43.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 08:43:14 -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 v8 03/17] dma/ixd: fix incorrect free function in cleanup Date: Tue, 8 Oct 2024 08:41:33 -0700 Message-ID: <20241008154301.66192-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241008154301.66192-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241008154301.66192-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 Reviewed-by: Bruce Richardson --- 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 60ac219559..6ed03e96da 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