From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 469452F260C; Thu, 28 May 2026 20:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779998832; cv=none; b=fTtVqR56VHpKZx6DIziI5zDzdjG8ieCnfOWpOEMe4x1+HfpxJkV7XwaI2p+RO/XlTLOVy742/6g8SIubOgmiWzvNPz0Mzk9ceFerIv4Axoe5Kj+cduOiVbI/3QhxWWnis3bx168oIN911vO51Xk9bI7yboOuMh8mGoQpoL8uE4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779998832; c=relaxed/simple; bh=EwO4yGZDMdRP442MuqoFAjXGW4bEn0ewmWEqgkZw23A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u2+M8wCEeNyntYBsWisSuQjJTFRzJbBLFJyNuanKZvE8Oobdu6d1tNhuzTCniCypfVKRLNMNSIKLe1r7NgE42zl4Kxtf8QRHeh4TvrTyWQYX0uJABEBuWxrE22k87xE4LMkd2YPEq0xa/malLvTZPtHiHgaUROUrUfalofZGmCg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k2rdn4AU; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="k2rdn4AU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5691E1F000E9; Thu, 28 May 2026 20:07:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779998830; bh=/Pt7kkIB5v8sm3H8dkfyhBXbljoWa/McNGIhkWlhWFc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=k2rdn4AUc1cJIrPrS5yRYLW6q5dLx+Wtrxx21cmMKpoFN/qO3FDo8sq+v4vuKfDSQ A6+OwvjZm//UQIYJ3BNGS5t5ocgWgUJJBm9vnmQip+7r6P6T4qbOzsSmJn9iTDBwt0 7/z/3E4dtfB/uqHtB3dMEeYNQ/ggLRHMz+qgAlhc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nicolas Escande , Baochen Qiang , Rameshkumar Sundaram , Jeff Johnson , Sasha Levin Subject: [PATCH 7.0 277/461] wifi: ath11k: fix error path leak in ath11k_tm_cmd_wmi_ftm() Date: Thu, 28 May 2026 21:46:46 +0200 Message-ID: <20260528194655.199357706@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260528194646.819809818@linuxfoundation.org> References: <20260528194646.819809818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nicolas Escande [ Upstream commit 7320d6eb861e9913193a7801834c661381756a79 ] This is similar to what was fixed by previous patches. We have a call to ath11k_wmi_cmd_send() which does check the return value, but forgot to free the related skb on error. Fixes: b43310e44edc ("wifi: ath11k: factory test mode support") Signed-off-by: Nicolas Escande Reviewed-by: Baochen Qiang Reviewed-by: Rameshkumar Sundaram Link: https://patch.msgid.link/20260506134240.2284016-4-nico.escande@gmail.com Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath11k/testmode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath11k/testmode.c b/drivers/net/wireless/ath/ath11k/testmode.c index a9751ea2a0b73..c72eed358f6dd 100644 --- a/drivers/net/wireless/ath/ath11k/testmode.c +++ b/drivers/net/wireless/ath/ath11k/testmode.c @@ -457,6 +457,7 @@ static int ath11k_tm_cmd_wmi_ftm(struct ath11k *ar, struct nlattr *tb[]) ret = ath11k_wmi_cmd_send(wmi, skb, cmd_id); if (ret) { ath11k_warn(ar->ab, "failed to send wmi ftm command: %d\n", ret); + dev_kfree_skb(skb); goto out; } -- 2.53.0