From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12A7117C220 for ; Tue, 6 Jan 2026 12:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767702080; cv=none; b=PlbqZR8rAQiYW7q2nH5Ux4j3bmcO0JxurTCaU44y8xuWSZ9BLMJhgNt8Hb3Rgr6Y8waXyR3BMydweplvMWw9LUW+j9Q35v63rS0wMij4II+dPen4kidwRDNc6rb3v0a4IdCVo5NXsbQYNjXOV7ySZnHFRY2NErPXmumq/v4sguk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767702080; c=relaxed/simple; bh=VWCAoG0/FnpZc2pR7U7vZICZUuAHmYDUpme8+4Mf5/4=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=q8IGmsEqM35TfQe1Lt1Pq5HgFV+SEIJwuUwVgLDPwRQqpclI9OzVVRAAeXFD0cOv3BM3PwaYKYY+lNJeSN5RXp3p4IpshlZuIcVVn4F3wlDz16ykN3WSfXQ1k+hmSFhxwOYTPPZWLMWYGIvB/M5O59L12Jf4Eq3JIT06hF9gLeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TFmIj2n7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TFmIj2n7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3B44C116C6; Tue, 6 Jan 2026 12:21:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767702079; bh=VWCAoG0/FnpZc2pR7U7vZICZUuAHmYDUpme8+4Mf5/4=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=TFmIj2n7D2685cDGJtQ5yuvwm4jyx7ZiT1tt/d+nct8ieCgSu5K+phvTkzE20XVh7 qxN7cJOB1wjuKL42Txdofvz5YYceimOT5FL0IJMVe617pt2zldePePGsUUJhnWk1jm +moW57NqxNbHb3IWmwVA4ksDoS7GFWGo7Cox8+OMIO0DdCCXjG81oEQ3ONKDSazB5b 9fudHpCs+Y12AEde/5Oik7vDjBVDXO8/fcYgfo3LMEwizBX0ZVcHWzAhVFy1yw0mdh E/oMVSii6pDTtpkJ8vRCdnWX6gD/Z29aNpKpM1ipNBJ+/3Qu3pbZ6D2IgNIE/6gkui +rXZew5cRB/Nw== From: Mark Brown To: gregkh@linuxfoundation.org, rafael@kernel.org, dakr@kernel.org, Kaushlendra Kumar Cc: linux-kernel@vger.kernel.org In-Reply-To: <20260105031820.260119-1-kaushlendra.kumar@intel.com> References: <20260105031820.260119-1-kaushlendra.kumar@intel.com> Subject: Re: [PATCH] regmap: maple: free entry on mas_store_gfp() failure Message-Id: <176770207872.32717.3989188750780257328.b4-ty@kernel.org> Date: Tue, 06 Jan 2026 12:21:18 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.15-dev-47773 On Mon, 05 Jan 2026 08:48:20 +0530, Kaushlendra Kumar wrote: > regcache_maple_write() allocates a new block ('entry') to merge > adjacent ranges and then stores it with mas_store_gfp(). > When mas_store_gfp() fails, the new 'entry' remains allocated and > is never freed, leaking memory. > > Free 'entry' on the failure path; on success continue freeing the > replaced neighbor blocks ('lower', 'upper'). > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: maple: free entry on mas_store_gfp() failure commit: f3f380ce6b3d5c9805c7e0b3d5bc28d9ec41e2e8 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