2015-05-12 08:06:21

by Mariusz Skamra

[permalink] [raw]
Subject: [PATCH] android/avdtptest: Fix NULL local stream endpoint queue

This patch fixes missing queue_new()
---
android/avdtptest.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/android/avdtptest.c b/android/avdtptest.c
index f42f664..2e07d7e 100644
--- a/android/avdtptest.c
+++ b/android/avdtptest.c
@@ -866,6 +866,12 @@ int main(int argc, char *argv[])
}
}

+ lseps = queue_new();
+ if (!lseps) {
+ printf("Failed to allocate memory\n");
+ exit(0);
+ }
+
local_sep = avdtp_register_sep(lseps, dev_role, AVDTP_MEDIA_TYPE_AUDIO,
0x00, TRUE, &sep_ind, &sep_cfm, NULL);
if (!local_sep) {
--
1.9.1



2015-05-13 15:04:05

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] android/avdtptest: Fix NULL local stream endpoint queue

Hi Mariusz,

On Tuesday 12 of May 2015 10:06:21 Mariusz Skamra wrote:
> This patch fixes missing queue_new()
> ---
> android/avdtptest.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/android/avdtptest.c b/android/avdtptest.c
> index f42f664..2e07d7e 100644
> --- a/android/avdtptest.c
> +++ b/android/avdtptest.c
> @@ -866,6 +866,12 @@ int main(int argc, char *argv[])
> }
> }
>
> + lseps = queue_new();
> + if (!lseps) {
> + printf("Failed to allocate memory\n");
> + exit(0);
> + }
> +
> local_sep = avdtp_register_sep(lseps, dev_role, AVDTP_MEDIA_TYPE_AUDIO,
> 0x00, TRUE, &sep_ind, &sep_cfm, NULL);
> if (!local_sep) {

Patch applied, thanks.

--
BR
Szymon Janc