* [PATCH BlueZ] a2dp: Remove duplicate check in transport_cb
@ 2026-10-18 4:39 Iaroslav Voitovych
2026-10-18 7:27 ` [BlueZ] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Iaroslav Voitovych @ 2026-10-18 4:39 UTC (permalink / raw)
To: linux-bluetooth
transport_cb() checks setup->stream twice in a row: commit
0bed9886cff3 ("a2dp: Fix crash on NULL stream in transport_cb") and
commit d84171e6cd68 ("a2dp: Fix crash on NULL stream in transport_cb")
add the same check. Remove the second copy.
---
profiles/audio/a2dp.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 37f6d4ae1..cb1b3a980 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -2749,11 +2749,6 @@ static void transport_cb(GIOChannel *io, GError *err, gpointer user_data)
goto drop;
}
- if (!setup->stream) {
- error("bt_io_accept: setup %p has no stream", setup);
- goto drop;
- }
-
if (!avdtp_stream_set_transport(setup->stream,
g_io_channel_unix_get_fd(io),
imtu, omtu))
base-commit: fa6ba55020dee3c3183041c854c347b4582448be
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-18 7:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-18 4:39 [PATCH BlueZ] a2dp: Remove duplicate check in transport_cb Iaroslav Voitovych
2026-10-18 7:27 ` [BlueZ] " bluez.test.bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.