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

Andy Shevchenko <[email protected]>
Newsgroups org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
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.

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.