Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1717177pxj; Wed, 19 May 2021 12:13:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ8SIvt3ENgdSUUn+9byNKmwUi2NAVYdYvVviJcjyu3k/KMwU0X3IdU1aM8w+5VP7qaksM X-Received: by 2002:a17:907:9008:: with SMTP id ay8mr695861ejc.474.1621451594075; Wed, 19 May 2021 12:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451594; cv=none; d=google.com; s=arc-20160816; b=ADWfQPc2KvCa0ytURlak0pIEvCS06XkoZMZ/UfsM8HoJwrDPgCAJUVYjjNz9kh/P1n i5bBFBi/F+/tpYklbcvFvveusX2ZjgkaVCcX9dL3vzJiOP4DGZP+NWX3SfwhFH44PE49 HxoBO+3i1NdBcehWHHUY3fzF2NXGgearpMuXKe1YgjbUBFi9bFUhDNQa0IpM5AQor8tl RXifpXcoKtby8+jUcNJCjvzQmyFEoNpmwC+5hVONCVECPIwVeO9RjYK/m8A9QFaCW7FR khnC8uFUlIiCQ/N3U8gri6vqIdaDISovhUz7Gsgm7Uvt9jh+eOShtbxz+yCMrE1fqE53 zb6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=3QbSbLPI6KFau5SMsJj2VQiXQD0J6qb1qFkmipXcu9c=; b=p6PPzufgM8Vo0GfOo4/ntuyzZDqjiirnxGOJhlEyTmb+QZNGzvdZDqRl3wTmpbJjs7 sfCMyFQUfPDCGg/DZ5uty+bQdOe2mzZraghT8qf1I5/1fGQIUbePBxQSJs6DaxQrkirr MBaIN+JjxmwLSDNlm7nS3p7dYxAT48d9rt8oEQhqf+vJ8WnZjrKKrfjVUL9vxrd0V1I8 RV/lKq23qd1S9TqJDsYDkb/JEH6X5KqXP8qDu/1aLIQcsE9AUwXMMJw34BqdvOAvcZ8V 5fakRlOAikHlf0l8w7fl9NqAu4TVw25m2zMZfPs+zGlylhjFDFc5KD4sH3fR2Jcj8WcT QyHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P01ugnN2; 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 w2si56391edi.531.2021.05.19.12.12.49; Wed, 19 May 2021 12:13:14 -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=P01ugnN2; 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 S235433AbhESEmb (ORCPT + 99 others); Wed, 19 May 2021 00:42:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232204AbhESEmb (ORCPT ); Wed, 19 May 2021 00:42:31 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43F30C06175F for ; Tue, 18 May 2021 21:41:11 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id q15so8548788pgg.12 for ; Tue, 18 May 2021 21:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=3QbSbLPI6KFau5SMsJj2VQiXQD0J6qb1qFkmipXcu9c=; b=P01ugnN2t7Zxcr4d1TdgUdXgPa7ahsbEWf1b0DvF50IZTgeoYD3hzVkde92er6KCwc 7P2zKaI+7j828Vk0LWFm692znfKJM8Up/DbIuL1yztePFH72rUErPGWsZI+AR9nOvgi9 kAuKygHkhgcmI4+XO3K9dUi5z9N20KA3Za69KjAYllfzjVVJIas3SK809Z89QI869neC ZFL/ZdsqN6QMz9U5FK1ZLsDqV9TwG2OrqyumqNeb8EFak0k0qDBXjc47OoKwLqahFaxA G3n6JyqHPOUWLCjiXKlh8ANqLRkkoTlG/DT2tVsXMdpSxiJ7p5UT+2oc24fdTLghlPYF ydPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=3QbSbLPI6KFau5SMsJj2VQiXQD0J6qb1qFkmipXcu9c=; b=WvcEwJ9QrUxsiCFq5PPLORvz7eu25esmeFGHhTRX3M0/P8zQjbtGhWMBi5pcLjwVpf WWp8Sqr2ng835apojmCqlWUMRj3DRxK/5z2ElE7FUeKMnnY+deh1IIRKrZyToobQngwF Sowiuc/n2ZpmRdOVLCidHa2b8JNw3O2mWUbiQONA2x+DPMX9lLO3x5sgSV2dNfhi+LYk QJCqQAfA+sSbnuPgvAaPU6KWBeRFsnNCc9MPCfjuBhg61vAgbOknNvp2Zt8K0vagqm+4 meT9c6EVjyB/V2ui/mJDw4sO3xHvF/Fsn+9EOtiv1Qskh7pVol6Wp6zL5cKBjNS8boEd qxGw== X-Gm-Message-State: AOAM533S7wxnYearBWWRWW3g/7/Cn5LwzreVrHUML6qwtXVXYfIyGtEJ v3IhH1gEgS1a2ulf8jB52BM= X-Received: by 2002:a05:6a00:a8a:b029:2ce:a0c2:1f6d with SMTP id b10-20020a056a000a8ab02902cea0c21f6dmr8796633pfl.3.1621399270671; Tue, 18 May 2021 21:41:10 -0700 (PDT) Received: from han1-mobl3 ([2601:1c0:6a01:d830::512a]) by smtp.gmail.com with ESMTPSA id x6sm4606265pfj.24.2021.05.18.21.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 21:41:10 -0700 (PDT) Message-ID: <625ddaac272571a89451dbff5be28270cd63e15b.camel@gmail.com> Subject: Re: [Bluez PATCH v1] core: Fix loading AVDTP options From: Tedd Ho-Jeong An To: Howard Chung , linux-bluetooth@vger.kernel.org, luiz.dentz@gmail.com Cc: chromeos-bluetooth-upstreaming@chromium.org, Yun-Hao Chung , mmandlik@chromium.org, apusaka@chromium.org Date: Tue, 18 May 2021 21:41:08 -0700 In-Reply-To: <20210507123246.Bluez.v1.1.I15d73dd47b94af906daa3f5a25d4fc5db8cc5b29@changeid> References: <20210507123246.Bluez.v1.1.I15d73dd47b94af906daa3f5a25d4fc5db8cc5b29@changeid> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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);