mbox series

[BlueZ,v2,0/2] bap: Allocate memory for broadcast code

Message ID 20240619095119.167652-1-vlad.pruteanu@nxp.com (mailing list archive)
Headers show
Series bap: Allocate memory for broadcast code | expand

Message

Vlad Pruteanu June 19, 2024, 9:51 a.m. UTC
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(-)

Comments

patchwork-bot+bluetooth@kernel.org June 19, 2024, 2:10 p.m. UTC | #1
Hello:

This series was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Wed, 19 Jun 2024 12:51:17 +0300 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [BlueZ,v2,1/2] shared/util: Add util_iov_new function
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=503ecbc655c5
  - [BlueZ,v2,2/2] bap: Use util_iov_new when setting bcode
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=5ec05848a9d4

You are awesome, thank you!