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=1796387079; b=mlQaiTwkTNeYl+/+6Pwpay3yttWjo27Er6ovqPSq4wftXBMqgiCqSmX7XHav0ZkGDxtc wii+Jq+FqhOYO0mSYS3ZaFb5FDYUgtFm1bYN1LiBwCP7KloGiy0Fw8moNysKbbXNN4t5R Hm9lx6XbYbmMC84CRyMQJzy/9jwVnP9wsMBGSg4geYxJAziAXtvfoIo9pDAo9A523kLKM vA+FvUNsTox33XVGr6WWUtVpZhnMk+kPu44Dotc7NA6Tgg/G0tLmAM2MQjFp+r9znf9fG p49cSOFMCcYdiEbu8d9GNTSO4pF0swv4J4tLIxrjr4yp5C1mXrFds71p/Lnt5FocEVQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387079; 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=YYBeYssWFy6ZH8yAVT4kyvdOA+KuDy6uVOPaVCviZ2U=; b=pKECi0ke0jQd9u7bv6GwqYNNedwNaCIZSiJdiksLVRQbOkTvGqOCs7KoqJA9T33DTl64 U1tDVwbXpuA8Xkn1TbpW4MnMqQ60FBclDQlbhNP8VoUrzigmdTL0O9c6kyH+gotfAI1SQ X+zZWonfet7xn3RjwLzSaNY4BRWHHx5NiTLyZLDZ65sjI6xdIPK0sSlH4tNfnrTc7nEj3 O6t9UYDWkMU42aniQ+w4rWYldjexfcTlQZtYeUTMTemXJVnYE7AK1+QMnR5yW6px8z7xH F02RULPG3zzDgUPWcBo2cDkgf1AKSyPDG8piNSKz0aKYdajOPkv/v1tXKU4eeno9r/g== 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=S3ZyLTKQ; 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 7FBFE606A322; Fri, 4 Dec 2026 12:24:39 +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=S3ZyLTKQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 008911F000C2; Fri, 4 Dec 2026 12:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387079; bh=YYBeYssWFy6ZH8yAVT4kyvdOA+KuDy6uVOPaVCviZ2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=S3ZyLTKQ1iCRRfXsO3cisynaHHLtLBk7WuknEFISIM3/Y7RZuwx26IqsC6VlPp4JU 55zp7/PEKZLQ8S/GLyutB5see2bMuxw0GfWK71ptdA0Fz/YXIbhGHgf4DcOnf01Z7k 11RJob8UI48jD3knHSFpi/5zJaHUkCN5+HeMSa+s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Luiz Augusto von Dentz , Sasha Levin Subject: [PATCH 6.1 0125/1059] Bluetooth: Fix not updating of hdev->commands[] after reset Date: Fri, 4 Dec 2026 18:54:16 +0900 Message-ID: <20261204100647.458021366@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Luiz Augusto von Dentz [ Upstream commit e00aa1a33f81a5e25b510f569ab9cb9f97eb41b9 ] Read Local Supported Commands was only read once during the INIT/SETUP flow, but the supported commands bits may change at runtime, for example after a firmware change applied with vendor commands, so update hdev->commands[] every time the response is received. Fixes: 6a070e6e81ad ("Bluetooth: Store supported commands only during setup procedure") Signed-off-by: Luiz Augusto von Dentz Signed-off-by: Sasha Levin --- net/bluetooth/hci_event.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 26b859c2c9c58..8e6017834bb59 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -785,9 +785,7 @@ static u8 hci_cc_read_local_commands(struct hci_dev *hdev, void *data, if (rp->status) return rp->status; - if (hci_dev_test_flag(hdev, HCI_SETUP) || - hci_dev_test_flag(hdev, HCI_CONFIG)) - memcpy(hdev->commands, rp->commands, sizeof(hdev->commands)); + memcpy(hdev->commands, rp->commands, sizeof(hdev->commands)); return rp->status; } -- 2.53.0