From 022eda58e157b10550cd8526210316e6448a071d Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 13 May 2021 09:43:36 -0700 Subject: [PATCH] btdev: Fix crashing if ISO link is in fact a BIS BIS doesn't not have necessarily needs a link if there is no sync in place. --- emulator/btdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 20b482cee..50407d9a2 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -5579,7 +5579,8 @@ static void send_iso(struct btdev *dev, const void *data, uint16_t len) num_completed_packets(dev, conn->handle); - send_packet(conn->link->dev, iov, 2); + if (conn->link) + send_packet(conn->link->dev, iov, 2); } void btdev_receive_h4(struct btdev *btdev, const void *data, uint16_t len) -- 2.47.3