Skip to content

Commit 812279b

Browse files
alexstanoev-nordicweeTike
authored andcommitted
[nrf fromtree] bluetooth: host: Fix bt_conn reference leak in Frame Space Update
Fix a missing unref of a bt_conn reference, leading to a ref count mismatch, and causing the following warning to be printed: bt_conn: Found valid connection ... in disconnected state. Signed-off-by: Aleksandar Stanoev <aleksandar.stanoev@nordicsemi.no> (cherry picked from commit 1eea6adad2963a7c889281e7024cc0f01af7e842)
1 parent 63addf2 commit 812279b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,6 +1856,8 @@ static void le_frame_space_update_complete(struct net_buf *buf)
18561856
}
18571857

18581858
bt_conn_notify_frame_space_update_complete(conn, &params);
1859+
1860+
bt_conn_unref(conn);
18591861
}
18601862
#endif /* CONFIG_BT_FRAME_SPACE_UPDATE */
18611863

0 commit comments

Comments
 (0)