Skip to content

iio: core: fix error path in iio_device_alloc()

Andy Shevchenko linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iio: core: add missing mutex_destroy in iio_dev_release()drivers/iio/industrialio-core.c+7 -20 replies
2/3iio: core: Clean up device correctly on iio_device_alloc() failuredrivers/iio/industrialio-core.c+5 -50 replies
3/3iio: core: Replace lockdep_set_class() + mutex_init() by combined calldrivers/iio/industrialio-core.c+1 -20 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNuno Sá
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.50.1