Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1584308lkv; Wed, 19 May 2021 13:22:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIDDyufmdFX3RnJsi8YhJih+Wmw5StsfXhW+d2pyF2RBwRzpvtrDjwBfEnwbOvEHr/11hQ X-Received: by 2002:a17:906:1f54:: with SMTP id d20mr983036ejk.94.1621455747394; Wed, 19 May 2021 13:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621455747; cv=none; d=google.com; s=arc-20160816; b=YR9DiE2DOeH3uTpF2CWWoD7LSnfiPaoSm61CuD++SdLbS/EcsumhoOHItw61Wk4hGK C43RG7YcGyKfD3T5a3FXgcbc86rPYYSjJsKhtkP60IZt2l3hSpgA0qCmn8Sa4/Ie2D3D iA8dZhdFHJmk5mm8Bwa+KBoMs0DzbX47QrEXYmiX+Xjvi5yShAk7G1Kyh2TUiKmNZ3jP kVzdaq0YkMxJTkY1YddJpwh0nr1Y4/bKELyhr4/t60jE6aJZwalFiXe13M8xO52h1gB2 uRWYSYTuhn+sWGZNHTaUWUbsMpNfcbv2zQhptjsxe11JWwqI7fBioslu6yEaG/kvQoBf a4eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=g5zyZvHODyW7wNlmGkZxhl3cucirKpOxo7r8pyIsuAg=; b=XnkmaOwIFeTGN5DAWBJie/Ik2A/AROEnRSgusahqrwVWCIXLe0M1kVgGYK0qjbzxSc JSmyeD+8LAkFbQp6OYLJx6OrOxesNBQG4J37Vmrs3SYdRRZm6sq0+KRF2cw4D6VzXrVe qyv7UiQoow0luXB18bUW8q0d85cJ53eTrlymXaDkM6v6Il0dzllvjFvCmISbb0a8xQPv GF1mc1Exv+UQdhaj77CKQx3FpW9JhoHLdr9F0QztgBuQuyAd0bI39499e0hryE1w1IlA o6zkgPY4X6Qal3xxMX4qms689Nxai4DTS1DLDgpomc0kOLo4MwaQDjU2K3FGTGLYOJQq Nlsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RePIhNZg; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si190080edu.223.2021.05.19.13.22.03; Wed, 19 May 2021 13:22:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RePIhNZg; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbhESSL7 (ORCPT + 99 others); Wed, 19 May 2021 14:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbhESSL7 (ORCPT ); Wed, 19 May 2021 14:11:59 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4717FC06175F for ; Wed, 19 May 2021 11:10:38 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id r8so19263733ybb.9 for ; Wed, 19 May 2021 11:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g5zyZvHODyW7wNlmGkZxhl3cucirKpOxo7r8pyIsuAg=; b=RePIhNZgnwyAsI602yeGhRgJNCXLSE5u7WcBYSLeftFIRbzW1ti52ZsVoGjnCRgTBx 24UeKfGV1GwuNRfzACfFlBtq8zDHoamRZe4ONDzioEVFkMkoadD5KYGJ1foxFRjdxISg gf0PLy5IVaQZL64JNsP81nVeogMtxl6ZxhlZYfFuVbEoe7xcwjYEXiVlTHZ9p9cZZsn3 kFwMWEG9Moh4/lsG004WNqNptqE0DIMlEVOVpwUfycUkJsYYd8wds6bo+WG7CJUGkhJa 4JQglhBDuZRfl5d53/NoDv0o8fO4jfRU8YFQZqcgnjBQLlHNsKF9H4JDC9cXiKj0oRDu 9Frw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g5zyZvHODyW7wNlmGkZxhl3cucirKpOxo7r8pyIsuAg=; b=kiNVatUvXxvjEK3q5JIhcuWUqdyj/4ZcN7U+DRctlrJfWbNND/eEKAekb1V+0JIdg1 ru6qS24v5aEzioeJG8VEwrxyPaZuq5VLAPJpjqu7ZmPw0zcGCUJs2TEtkVSDuyvruAPD YBbZxWN8/+MEIXVgVA3rtkIW5MH+DVcN2OfqfvRo8SNskLYl8rOwNmBkWSoHFYqg42WX sIujzDqxHUaxRi6ia6/MMv1mq3FOHkhtvQCkm/F4bAm0OS1V1SsoARNcSTglhHkz2gnA WgpcpWskiHHei4VEXac5/E4cbD8Q+adGmNbvGdCf8ycHMBltIpW//nZ7K0Ba47Bd9tpP gJNA== X-Gm-Message-State: AOAM532sdOoGsazbEPg1jJY8xQHMHAP6Do0vc7pAmcvvkE/i00YWUbrb iZBCL1/lYgVON8/a/t8MGQMhkZ8JmL9cnJGFkg4= X-Received: by 2002:a25:b80e:: with SMTP id v14mr1280416ybj.408.1621447837480; Wed, 19 May 2021 11:10:37 -0700 (PDT) MIME-Version: 1.0 References: <20210507123246.Bluez.v1.1.I15d73dd47b94af906daa3f5a25d4fc5db8cc5b29@changeid> <625ddaac272571a89451dbff5be28270cd63e15b.camel@gmail.com> In-Reply-To: <625ddaac272571a89451dbff5be28270cd63e15b.camel@gmail.com> From: Luiz Augusto von Dentz Date: Wed, 19 May 2021 11:10:26 -0700 Message-ID: Subject: Re: [Bluez PATCH v1] core: Fix loading AVDTP options To: Tedd Ho-Jeong An Cc: Howard Chung , "linux-bluetooth@vger.kernel.org" , ChromeOS Bluetooth Upstreaming , Yun-Hao Chung , Manish Mandlik , Archie Pusaka Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Howard, On Tue, May 18, 2021 at 9:41 PM Tedd Ho-Jeong An wrote: > > Hi Howard, > > On Fri, 2021-05-07 at 12:32 +0800, Howard Chung wrote: > > From: Yun-Hao Chung > > > > Fix misassigned AVDTP StreamMode option, which causes StreamMode not > > being set. > > Fix AVDTP SessionMode option not freed. > > > > Reviewed-by: mmandlik@chromium.org > > Reviewed-by: apusaka@chromium.org > > Reviewed-by: Tedd Ho-Jeong An > > > --- > > > > src/main.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/src/main.c b/src/main.c > > index c32bda7d407d..7612d6984890 100644 > > --- a/src/main.c > > +++ b/src/main.c > > @@ -774,9 +774,10 @@ static void parse_config(GKeyFile *config) > > DBG("Invalid mode option: %s", str); > > btd_opts.avdtp.session_mode = BT_IO_MODE_BASIC; > > } > > + g_free(str); > > } > > > > - val = g_key_file_get_integer(config, "AVDTP", "StreamMode", &err); > > + str = g_key_file_get_string(config, "AVDTP", "StreamMode", &err); > > if (err) { > > DBG("%s", err->message); > > g_clear_error(&err); > > @@ -791,6 +792,7 @@ static void parse_config(GKeyFile *config) > > DBG("Invalid mode option: %s", str); > > btd_opts.avdtp.stream_mode = BT_IO_MODE_BASIC; > > } > > + g_free(str); > > } > > > > parse_br_config(config); Applied, thanks. -- Luiz Augusto von Dentz