From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380948; b=Ibx6K3+gRLruGGN5SaZNCa2IPIkPDOCPVVHsEll4M6oGXwgXtljxmRf9kTpu5gXIle6O tViXqauq+DCoBAOLY+IyKRrmFLp2fo9k+KZ74r1uyPebrUHmz+zLPYGKuhaACHwBQ42h9 toa1lcO10E8SojuceZXZWL7Tgv/U7lh161QMwwfat3On7314/U6dFHPO6/gT5H3RYVVwN XfSI7LuOSHoKnExznZGGjr8noGZT+/NYq8Dh5AmvBc6TPyHZ14lNogrvDlFuUhYFd7Qfi q01zqqFTCnCpjP/c9cdYN8+wCyDB4Wncj65601g0zq7TXtHON+jZmiHDCAWi2bbgd3w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380948; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=GiqiHYSTypB2wf6bAh5AuNYZK7mEz8KLcYF6FAP81nA=; b=uO6u5Kw3GBx/VgYdsnCynYebAK+Gm7B2xrH+zlOjmLs+nU6B9zQMTiUhJb+r7dmJbrHi xHodtrE3Fe0759K97kmcN1tkMqRvSMJID4OaWQ32igwD29J0dSy5PJLdA9VtMHpYECL/4 zFKdQsPk9ZUXUstF8tMwpjl79CZggGdpBRlBgWyXHjgwh06UMZZNvecM4v0eUIDdXj6ZS YFRPXXYLzgKV2WKu1SXI1njJIOaQSvAZvRWU+IiXZddHGLsA2NCjbpQEWvOoiz8mYn9lp +08oRZ8fkHKEibx30V/qCdmR8CP0L0PMd8JUf30fnYOWqIFQrMmN1ovSW4vZXrTi3jg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=PxmVcpKe; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1436C606A336; Fri, 4 Dec 2026 10:42:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=PxmVcpKe Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80A7F1F000CE; Fri, 4 Dec 2026 10:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380947; bh=GiqiHYSTypB2wf6bAh5AuNYZK7mEz8KLcYF6FAP81nA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PxmVcpKe4IskVr+rBkUOJshqKOziJDdEUBejqcX4qVEsb7K16FEdCN8acCB+enSjp 7y0xytn/GlcQKqidqTZzG3GgGzYJqTZ5/Mtjuz+OAE89ekEXg+LiZ3zyknlcnKoDj6 rdOjn0Hv/WFnJs/lhVI1gNfmDIM9riV3ZtvuvOm8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jedrzej Jagielski , Xuanqiang Luo , Aleksandr Loktionov , Tony Nguyen , Jakub Kicinski Subject: [PATCH 7.3 494/742] iavf: fix QoS capabilities memory leak Date: Fri, 4 Dec 2026 19:05:58 +0900 Message-ID: <20261204100648.259144449@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xuanqiang Luo commit 65f6ffb9001bf539aebd478798460477980b60c4 upstream. Commit 4c1a457cb8b0 ("iavf: add support to exchange qos capabilities") allocates adapter->qos_caps during probe, but iavf_remove() does not free it. This leaks the allocation whenever an iavf device is removed. Free adapter->qos_caps in iavf_remove(). Fixes: 4c1a457cb8b0 ("iavf: add support to exchange qos capabilities") Cc: stable@vger.kernel.org Reviewed-by: Jedrzej Jagielski Signed-off-by: Xuanqiang Luo Reviewed-by: Aleksandr Loktionov Signed-off-by: Tony Nguyen Link: https://patch.msgid.link/20261113004602.129864-5-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/iavf/iavf_main.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -5638,6 +5638,7 @@ static void iavf_remove(struct pci_dev * iounmap(hw->hw_addr); pci_release_regions(pdev); kfree(adapter->vf_res); + kfree(adapter->qos_caps); spin_lock_bh(&adapter->mac_vlan_list_lock); /* If we got removed before an up/down sequence, we've got a filter * hanging out there that we need to get rid of.