Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d6a86101 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

Floss: fix return value of btif_av_get_peer_sep

Some codepaths on deciding whether to start a2dp depends on
the return value of `btif_av_get_peer_sep`.

However, it returns a valid value (sink) even when the peer is not found
(nil), in which case could cause btadapterd to crash at later assert
statements.

Bug: 240641968
Tag: #floss
Test: Build and verify Floss doesn't crash with repro in bug
Change-Id: I0d6839834358fd70d41406364a48ca6152012cba
parent 1e1db4e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment