Re: [PATCH v3 2/8] iio: adc: ti-ads1015: fix PM leak on probe failure
Archit Anant <[email protected]>
| Newsgroups | org.kernel.vger.linux-kernel,org.kernel.vger.linux-iio |
|---|---|
| Message-ID | <CADJHxWB-NkBE62aviCNA3O+d_RcO=fecvenxa1K+3cEpH5MpeA@mail.gmail.com> |
On Sat, Aug 22, 2026 at 6:08 AM Jonathan Cameron <[email protected]> wrote: > > On Thu, 13 Aug 2026 11:51:28 +0300 > Andy Shevchenko <[email protected]> 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 <[email protected]> > > > > 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/[email protected]/ > > Please rebase the remainder of the series. Oh, I missed that as well, nvm. I'll rebase the rest! -- Sincerely, Archit Anant