Re: [PATCH v3 2/8] iio: adc: ti-ads1015: fix PM leak on probe failure

From: Archit Anant

Date: Mon Aug 24 2026 - 00:55:35 EST


On Sat, Aug 22, 2026 at 6:08 AM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
>
> On Thu, 13 Aug 2026 11:51:28 +0300
> Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:
>
> > On Wed, Aug 12, 2026 at 10:14:27PM +0530, Archit Anant wrote:
> > > If iio_device_register() fails during probe(), the runtime PM
> > > subsystem is left enabled. This leads to a resource leak upon failure.
> > >
> > > Add the missing pm_runtime_disable() and pm_runtime_set_suspended()
> > > calls to the probe() error path to ensure proper cleanup.
> >
> > > Reported-by: Jonathan Cameron <jic23@xxxxxxxxxx>
> >
> > Was it public email?
> >
> > > Link: https://lore.kernel.org/linux-iio/20260718225515.7e49a458@jic23-huawei/
> >
> > Ah, this should be Closes: tag instead of Link.
> >
>
> I never checked but this is already fixed in the iio tree and
> the relevant devm rework done. :( So much going on at the moment
> in IIO I didn't recall this one at all!
>
> https://lore.kernel.org/all/20260529183708.17819-1-sozdayvek@xxxxxxxxx/
>
> Please rebase the remainder of the series.

Oh, I missed that as well, nvm. I'll rebase the rest!

--
Sincerely,
Archit Anant