From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82B33C4167B for ; Mon, 4 Dec 2023 16:29:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234798AbjLDQ33 (ORCPT ); Mon, 4 Dec 2023 11:29:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344930AbjLDQ3W (ORCPT ); Mon, 4 Dec 2023 11:29:22 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53A8399 for ; Mon, 4 Dec 2023 08:29:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97740C433C7; Mon, 4 Dec 2023 16:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701707364; bh=vhrxUvsCwsaGYvyyei5h55J9yp+nmIcuFyO/lJGVsJM=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=nlfqs1xKZp32xjV/6EKDBJ2qWN4k1GrusvYA6y+pDG1Nj3WAKnOLkUcGrPOZ0OGXz G3GpcOBo/LbTOymRzzN87kHGm/k9MEmu2KVNhy+o0ANyGkKUPya2AQF1H4vW3ZOJqJ hWr/bdZvrddYY7MeY6IAo/X9/v7xnSTZ9vj6VfispDV3rz3aQUHdFTYPjwuXB6KzoZ RMslHsfXUZZL/2rLamNH2sudBW3P7VJyae7PSnKlRrawgvr6wNMZRFf9tRu3rjxX6S ygYFPc/AcGJOf5wewz6kWRLZs4+R39dje2xLi6wgmnMF/f+XA68ImNDZmAOIdINyn5 shTvUc2qSCt+A== From: Mark Brown To: Dinghao Liu Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Richard Fitzgerald , Simon Trimmer , Kuninori Morimoto , Claudiu Beznea , Charles Keepax , patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231204074158.12026-1-dinghao.liu@zju.edu.cn> References: <20231204074158.12026-1-dinghao.liu@zju.edu.cn> Subject: Re: [PATCH] ASoC: wm_adsp: fix memleak in wm_adsp_buffer_populate Message-Id: <170170736133.96782.15219793902912289690.b4-ty@kernel.org> Date: Mon, 04 Dec 2023 16:29:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-5c066 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 04 Dec 2023 15:41:56 +0800, Dinghao Liu wrote: > When wm_adsp_buffer_read() fails, we should free buf->regions. > Otherwise, the callers of wm_adsp_buffer_populate() will > directly free buf on failure, which makes buf->regions a leaked > memory. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: wm_adsp: fix memleak in wm_adsp_buffer_populate commit: 29046a78a3c0a1f8fa0427f164caa222f003cf5b All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark