Re: [PATCH next] power: supply: fix a double free on error in probe()
From: Sebastian Reichel
Date: Thu Sep 05 2024 - 10:33:05 EST
On Thu, 05 Sep 2024 16:28:59 +0300, Dan Carpenter wrote:
> In this code, if devm_add_action_or_reset() fails, it will call
> max1720x_unregister_ancillary() which in turn calls
> i2c_unregister_device(). Thus the call to i2c_unregister_device() on the
> following line is not required and is a double unregister. Delete it.
>
>
Applied, thanks!
[1/1] power: supply: fix a double free on error in probe()
commit: 48f703d6a3d7cf345fe9c6209ea3703fe9024628
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>