Diff between 957c956112cc2bba528fe8df4a0a21d221a617ca and 0bad3d5cbea84b24d53e86de7c419e893bb19a93

Changed Files

File Additions Deletions Status
profiles/audio/bap.c +1 -1 modified

Full Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index afa9380..16c0252 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -3194,7 +3194,7 @@ static void bap_bcast_remove(struct btd_service *service)
 	 */
 	req = queue_remove_if(data->adapter->bcast_pa_requests,
 						match_service, service);
-	if (req->io_id) {
+	if (req && req->io_id) {
 		g_source_remove(req->io_id);
 		req->io_id = 0;
 	}