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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux