Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp433845ybg; Tue, 28 Jul 2020 09:32:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh/jIRoUIVy4ONoPi8m1ulmqIvuFiZyWT3hZxCkyVkLJoNlEv17WJlVe5OuxGq/3X42h8S X-Received: by 2002:a05:6402:325:: with SMTP id q5mr1318759edw.343.1595953947809; Tue, 28 Jul 2020 09:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595953947; cv=none; d=google.com; s=arc-20160816; b=c98iQX/5cVrw3DKyYayyI1I1FwlDE9fHixxPK5KZRcFWLRQhZ1ca0RBrGSOgQwO7y/ UL7F4Z5Xuuj8q6+IqiKa/Ad6LzkipW7fTlBSqgGcHiyVYU/geAiOxjN1xSU16MFIwi+8 +z8/ryRSYVIWXNqdEVogqsG+6ejFbK+XeKtIMIPnFQDQnh5bBs8C1bIe8t73+3VCNywh 2Em4s9jY8PM/W6eTBw1H4hGEIP6I+wrZPsRZpT033RtLQgzA6hrG7qxtdPfjTpaGdS8t j0IG1JD0FAMRpENXn9uIL0janbD/v5gnKeHlzcq7QI0DkdLMmqjOEZRBoMYv3RGMvZY/ cjAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:subject:references:in-reply-to :cc:to:from:date:dkim-signature; bh=dogCLivVgtjugy2ICQ06BMxZQ3DbD2CQmjl5OsXwoWc=; b=huraqAQVB7W+ECDlCQfsPpoxmhML5BBYv4rTQ0guZ5FgxdKi7l77oyhB0uePeDvPTo 97Gv2flEkY7vPBtNNyCslbMu5D1Pd8Hn+nPIAi60pyGoES4JagyuMRquqSsL4qHlAZnG ogmZfQC06GnCJhno34BMYJdusRBNl6fDGfpiatzRTiF/T390B31zQ2T1CvukzdbUVmPL EuzUV8nXM/zcDv4QqTlY9Gs/7v3ayZgLcbQFp7WjmcvjSlxZivsBaKFELlxLiHVcnmOC Y4UC43FKsz+PPICUuQeK72UVd5VSna7ZEt/ARRAksGttlgLob1vk7B5MzQPxjO7a/hvl uzXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ow/wIniT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si8011449edq.111.2020.07.28.09.32.03; Tue, 28 Jul 2020 09:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b="ow/wIniT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1731422AbgG1Qba (ORCPT + 99 others); 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