]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 22 May 2025 17:06:11 +0000 (13:06 -0400)
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>
net/bluetooth/mgmt_util.c

index e5ff65e424b5b4c727ed11012ccc1d98f79859d6..3713ff490c65d516ad64e3a16c47eae648fd8e7c 100644 (file)
@@ -304,7 +304,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);
        }