Diff between 503ecbc655c5115a09ae1b1fc2cde3fe5bda9203 and 5ec05848a9d441603a1d34ca184e2c470f0bfd62

Changed Files

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

Full Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 53e7b3e..e82a253 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1042,9 +1042,8 @@ static void create_stream_for_bis(struct bap_data *bap_data,
 	setup->qos.bcast.framing = qos->bcast.framing;
 	setup->qos.bcast.encryption = qos->bcast.encryption;
 	if (setup->qos.bcast.encryption)
-		util_iov_append(setup->qos.bcast.bcode,
-				qos->bcast.bcode,
-				sizeof(qos->bcast.bcode));
+		setup->qos.bcast.bcode = util_iov_new(qos->bcast.bcode,
+						sizeof(qos->bcast.bcode));
 	setup->qos.bcast.options = qos->bcast.options;
 	setup->qos.bcast.skip = qos->bcast.skip;
 	setup->qos.bcast.sync_timeout = qos->bcast.sync_timeout;