From f5409bd3deba779263fb58bb06a0573e034795cf Mon Sep 17 00:00:00 2001 From: Pavel Vasilyev Date: Mon, 25 Nov 2024 22:27:54 +0100 Subject: [PATCH] bluetooth: mesh: proxy_msg: Fix extracting role from k_work Fix extracting role from k_work. Hot fix for #78914 Signed-off-by: Pavel Vasilyev --- subsys/bluetooth/mesh/proxy_msg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subsys/bluetooth/mesh/proxy_msg.c b/subsys/bluetooth/mesh/proxy_msg.c index 861935f58cc..edee3ad384c 100644 --- a/subsys/bluetooth/mesh/proxy_msg.c +++ b/subsys/bluetooth/mesh/proxy_msg.c @@ -252,11 +252,9 @@ int bt_mesh_proxy_relay_send(struct bt_conn *conn, struct bt_mesh_adv *adv) static void proxy_msg_send_pending(struct k_work *work) { - struct bt_mesh_proxy_role *role; - struct k_work_delayable *dwork = k_work_delayable_from_work(work); + struct bt_mesh_proxy_role *role = CONTAINER_OF(work, struct bt_mesh_proxy_role, work); struct bt_mesh_adv *adv; - role = CONTAINER_OF(dwork, struct bt_mesh_proxy_role, sar_timer); if (!role->conn) { return; }