Skip to content

bap: Allocate memory for broadcast code

Vlad Pruteanu linux-bluetooth 2 versions – Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v11 patch 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2shared/util: Add util_iov_new functionsrc/shared/util.c src/shared/util.h+11 -01 reply
2/2bap: Use util_iov_new when setting bcodeprofiles/audio/bap.c+2 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH BlueZ v2 0/2] bap: Allocate memory for broadcast code

Currently the broadcast code is set without memory being allocated for it resulting in segmentation fault. This implements an util_iov_new function that allocates the memory before setting the user_data. The issue is fixed by using this function instead of util_iov_append.

Vlad Pruteanu (2):
shared/util: Add util_iov_new function
bap: Use util_iov_new when setting bcode

 profiles/audio/bap.c |  5 ++---
 src/shared/util.c    | 10 ++++++++++
 src/shared/util.h    |  1 +
 3 files changed, 13 insertions(+), 3 deletions(-)
Signature · 1 line
2.40.1