Re: [PATCH v3 2/8] iio: adc: ti-ads1015: fix PM leak on probe failure
From: Andy Shevchenko
Date: Thu Aug 13 2026 - 04:54:47 EST
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.
--
With Best Regards,
Andy Shevchenko