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 X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20D2AC433ED for ; Tue, 28 Jul 2020 16:31:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E66802074F for ; Tue, 28 Jul 2020 16:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595953892; bh=U2ae0+qxf5T7aHnxqe5Yy151vsXACiOFQ0qZgH3TxhQ=; h=Date:From:To:Cc:In-Reply-To:References:Subject:List-ID:From; b=Cc/DgJ8nTmweSWf28d2LTTg8UABagNy4JIMoxbb2sxfx6wSgee5wfwbULXuQ8UxDk MTu14bW8ZCUv4XP1s/HTU709/wPQxAaU4id326dqTeIadiEDuBMjOt8VnNcjYq1S45 Qy/1/eBRHPu2p4sI/hYJYYvjG9P5+K7nqUPT2qMs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731426AbgG1Qba (ORCPT ); Tue, 28 Jul 2020 12:31:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:47126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731070AbgG1Qba (ORCPT ); Tue, 28 Jul 2020 12:31:30 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 94F0C2074F; Tue, 28 Jul 2020 16:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595953890; bh=U2ae0+qxf5T7aHnxqe5Yy151vsXACiOFQ0qZgH3TxhQ=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=ow/wIniTZDzPUVFdpzhFD61DWmtDPjzS+GSVZk0YknUaqHxM89uMWdsnt18pv+4bj fXUUftnu4Vp2f22G8RpxVx14rCeq4ai5kvLUhnvEWGCNuULgWgcr6x1Fbj1VBFFPRx YiV47e9i99mh+vAQVrSaPzGRV4OzbXJEOYwFuoz0= Date: Tue, 28 Jul 2020 17:31:12 +0100 From: Mark Brown To: Pi-Hsun Shih Cc: Guenter Roeck , "open list:VOLTAGE AND CURRENT REGULATOR FRAMEWORK" , Liam Girdwood , Enric Balletbo i Serra , Benson Leung , Prashant Malani In-Reply-To: <20200728091909.2009771-1-pihsun@chromium.org> References: <20200728091909.2009771-1-pihsun@chromium.org> Subject: Re: [PATCH] regulator: cros-ec-regulator: Fix double free of desc->name. Message-Id: <159595387216.15267.9465724386859282869.b4-ty@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Jul 2020 17:19:09 +0800, Pi-Hsun Shih wrote: > The desc->name field is allocated with devm_kstrdup, but is also kfreed > on the error path, causing it to be double freed. Remove the kfree on > the error path. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: cros-ec-regulator: Fix double free of desc->name. commit: 176cf704425f3d22603d379ffa4a1033a24a779d 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