Re: [PATCH v3 2/8] iio: adc: ti-ads1015: fix PM leak on probe failure
Jonathan Cameron <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260822013823.28b0a1e1@jic23-huawei> |
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. Jonathan