Skip to content
Commit 088fac76 authored by Szymon Janc's avatar Szymon Janc Committed by Carles Cufí
Browse files

Bluetooth: Mesh: Fix crash on disconnect



bt_mesh_proxy_role_setup() is called conditionally when peer is
connected and gatt_disconnected() is always called. This leads
to unbalance in role->conn reference count and crash.

Instead of hot-fixing this in gatt_disconnected(), this commit adds
proper bt_mesh_proxy_role_cleanup() API that is called by roles
implementations if cleanup is needed.

Signed-off-by: default avatarSzymon Janc <szymon.janc@codecoup.pl>
parent 072c8f2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment