[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e837ac90-5d2f-4c58-9d76-d2076ef52f1d@roeck-us.net>
Date: Thu, 27 Nov 2025 08:08:40 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Johan Hovold <johan@...nel.org>
Cc: linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH] hwmon: (max6697) fix regmap leak on probe failure
On Thu, Nov 27, 2025 at 02:43:51PM +0100, Johan Hovold wrote:
> The i2c regmap allocated during probe is never freed.
>
> Switch to using the device managed allocator so that the regmap is
> released on probe failures (e.g. probe deferral) and on driver unbind.
>
> Fixes: 3a2a8cc3fe24 ("hwmon: (max6697) Convert to use regmap")
> Cc: stable@...r.kernel.org # 6.12
> Cc: Guenter Roeck <linux@...ck-us.net>
> Signed-off-by: Johan Hovold <johan@...nel.org>
Applied.
Thanks,
Guenter
Powered by blists - more mailing lists