Re: [PATCH v1 0/3] iio: core: fix error path in iio_device_alloc()
From: Nuno Sá
Date: Wed Nov 12 2025 - 12:59:43 EST
On Wed, 2025-11-12 at 15:55 +0100, Andy Shevchenko wrote:
> The series is induced by the similar fixes in viio_trigger_alloc().
> Basically two things happen here: 1) add missed mutex_destroy()
> calls, and 2) refactor to make sure we clean resources with put_device()
> when appropriate.
>
> Andy Shevchenko (3):
> iio: core: add missing mutex_destroy in iio_dev_release()
> iio: core: Clean up device correctly on iio_device_alloc() failure
> iio: core: Replace lockdep_set_class() + mutex_init() by combined call
>
> drivers/iio/industrialio-core.c | 18 +++++++++++-------
> 1 file changed, 11 insertions(+), 7 deletions(-)
LGTM,
Reviewed-by: Nuno Sá <nuno.sa@xxxxxxxxxx>