* [PATCH] android/avdtptest: Fix NULL local stream endpoint queue
@ 2015-05-12 8:06 Mariusz Skamra
2015-05-13 15:04 ` Szymon Janc
0 siblings, 1 reply; 2+ messages in thread
From: Mariusz Skamra @ 2015-05-12 8:06 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Mariusz Skamra
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] android/avdtptest: Fix NULL local stream endpoint queue
2015-05-12 8:06 [PATCH] android/avdtptest: Fix NULL local stream endpoint queue Mariusz Skamra
@ 2015-05-13 15:04 ` Szymon Janc
0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2015-05-13 15:04 UTC (permalink / raw)
To: Mariusz Skamra; +Cc: linux-bluetooth
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-13 15:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-12 8:06 [PATCH] android/avdtptest: Fix NULL local stream endpoint queue Mariusz Skamra
2015-05-13 15:04 ` Szymon Janc
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.