]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Bluetooth: MGMT: iterate over mesh commands in mgmt_mesh_foreach()
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 20 May 2025 08:42:30 +0000 (11:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:11 +0000 (11:07 +0100)
[ Upstream commit 3bb88524b7d030160bb3c9b35f928b2778092111 ]

In 'mgmt_mesh_foreach()', iterate over mesh commands
rather than generic mgmt ones. Compile tested only.

Fixes: b338d91703fa ("Bluetooth: Implement support for Mesh")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/mgmt_util.c

index 0115f783bde8055f9f0b8b46a9a84321e75abe39..17e32605d9b00aa94aed131cff12f6c7d32330ce 100644 (file)
@@ -321,7 +321,7 @@ void mgmt_mesh_foreach(struct hci_dev *hdev,
 {
        struct mgmt_mesh_tx *mesh_tx, *tmp;
 
-       list_for_each_entry_safe(mesh_tx, tmp, &hdev->mgmt_pending, list) {
+       list_for_each_entry_safe(mesh_tx, tmp, &hdev->mesh_pending, list) {
                if (!sk || mesh_tx->sk == sk)
                        cb(mesh_tx, data);
        }