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 <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
684c94e469
commit
f5409bd3de
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue