iio: core: fix error path in iio_device_alloc()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | iio: core: add missing mutex_destroy in iio_dev_release()drivers/ | +7 | 0 replies | |
| 2/3 | iio: core: Clean up device correctly on iio_device_alloc() failuredrivers/ | +5 | 0 replies | |
| 3/3 | iio: core: Replace lockdep_set_class() + mutex_init() by combined calldrivers/ | +1 | 0 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.
| Patch | Nuno Sá |
|---|---|
| Series | R-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.
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