Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6954255rwl; Mon, 9 Jan 2023 15:41:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXvf1/HX+i3AYXFbXcK0EW/MsXUK42CZtLrea2FDfPeyvzUgnvV/1gnOTY3Yl6y2fvw2yH/P X-Received: by 2002:a17:90a:9206:b0:227:c27:c7d8 with SMTP id m6-20020a17090a920600b002270c27c7d8mr5859102pjo.23.1673307676581; Mon, 09 Jan 2023 15:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673307676; cv=none; d=google.com; s=arc-20160816; b=hR2n+O2R3chvk7Z/W4MW4/nUbPOzSnFgpnF5m9UkCUdz15eURPyYLvJGvAhlYyQVQX ON+vJLwH7ts8bUyJkHfDdluNfCkhVzRPGluWXbPEE0sHk5MerWLcSOXgauIlERrFVkFC LeSKLfbYCHbaCvaoIItTuur5wvf0Dp3f8FBEKEalD56H2GooDdFsfop8BT8NswN+0D5L aga1kJQqg571ewvj4KOitzyBsNTqOM3PyGnFP2sGk3gZ5mm6eYzhMvA/dn+CTYRx3ZJo oZZYEXR6rTIsTuHSbeLdc8deOk5UcNfBNPmJcT9MrtJN6gGYdEcmZ/Z+wypzOdavZ3+W 6Yng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=wHP+vqLbzO/dCK7/RybKrMrY0RG0AgFayStliATNuYE=; b=kHefFymm0X0xG+ouueMs7Nabsh5t6QvnEz8C7/d1kFjO+Jtxcqvc8bKjDlsarI2yvX ysRTcxaSBJJbcQE1sxet0gOqpSIy1D7QFctHlocMBSrZXPayptG98CsXLPMsKmtUWmS+ BIiUN9RksnIFEI51XcYGXJzZ+kUgY5QcEkMafR5NQx10YUE9Kfhhz4eyIdw3OSH9byoJ OKAaPyEX125HJ5CHULgGwpFvop933ldpIs13eu5Qzpv5UV9jUVYsMTmsUq47gnwsXY9L 1XmVRHjMQGjObyHUgNa/8VmELf6WTF/tXsgQc150MIrr3Mh3hx7Dw5bc4VO+7cLSRJdG cGNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y8WoagtK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020a634510000000b00476d24ebb04si10562156pga.322.2023.01.09.15.40.52; Mon, 09 Jan 2023 15:41:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y8WoagtK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237223AbjAIXkb (ORCPT + 99 others); Mon, 9 Jan 2023 18:40:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235098AbjAIXkS (ORCPT ); Mon, 9 Jan 2023 18:40:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0F74FDD for ; Mon, 9 Jan 2023 15:40:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4F5FC6148C for ; Mon, 9 Jan 2023 23:40:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 8E9D2C433F0; Mon, 9 Jan 2023 23:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673307616; bh=z7BZ3XZdONNHPMEtDBEEOXisJDfe+4V3hPKwypELc+w=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Y8WoagtK99OFK4+PASeHsgHx6fj+C/1nETEbb6GTTtijb1rPikyT2cjK4GTPEeJ2J TsCb60/j6asjXFcibuDGiqhmEH/eaEaIe9z4KAKtbomSMRKqtMx/IfC80x+4NxfdXb ArKPIT2SuTcSqG/1EKMoItSBqfYuTI3eNpm/8F2LsW+CGTbbMNCMkryMbsHy+QUPgb qjnMAlbMODIRzRlqPu9Ur9fOKhYgRDf4Wg3AsZYg0mROJ6yrSVy5NCdQlpeeeyPssm ZGfNd7opxeF8p95kgPKGZVeTqYyt0u3Nz5+3dgrg2hhh3xifPt7ZwYA9XqrKDi1Nyk 76yPywkuJycSQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 75254E21EE6; Mon, 9 Jan 2023 23:40:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] Bluetooth: hci_sync: fix memory leak in hci_update_adv_data() From: patchwork-bot+bluetooth@kernel.org Message-Id: <167330761647.32176.3234485994949407027.git-patchwork-notify@kernel.org> Date: Mon, 09 Jan 2023 23:40:16 +0000 References: <20230109212237.3209300-1-luiz.dentz@gmail.com> In-Reply-To: <20230109212237.3209300-1-luiz.dentz@gmail.com> To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Mon, 9 Jan 2023 13:22:37 -0800 you wrote: > From: Zhengchao Shao > > When hci_cmd_sync_queue() failed in hci_update_adv_data(), inst_ptr is > not freed, which will cause memory leak, convert to use ERR_PTR/PTR_ERR > to pass the instance to callback so no memory needs to be allocated. > > Fixes: 651cd3d65b0f ("Bluetooth: convert hci_update_adv_data to hci_sync") > Signed-off-by: Zhengchao Shao > Signed-off-by: Luiz Augusto von Dentz > > [...] Here is the summary with links: - [v2] Bluetooth: hci_sync: fix memory leak in hci_update_adv_data() https://git.kernel.org/bluetooth/bluetooth-next/c/e8b5fd71713b You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html