Re: [PATCH] iio: sca3000: Fix a resource leak in sca3000_probe()
From: Andy Shevchenko
Date: Wed Jan 28 2026 - 04:48:49 EST
On Tue, Jan 27, 2026 at 10:49:49PM -0800, Harshit Mogalapalli wrote:
> spi->irq from request_threaded_irq() not released when
> iio_device_register() fails. Add an return value check and jump to a
> common error handler when iio_device_register() fails.
LGTM, but I would rather converting this to use managed resources.
So, if Jonathan wants to take this first,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
--
With Best Regards,
Andy Shevchenko