[PATCH v1 0/3] iio: core: fix error path in iio_device_alloc()

From: Andy Shevchenko

Date: Wed Nov 12 2025 - 09:57:43 EST


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(-)

--
2.50.1