Re: [PATCH] iio: mxs-lradc: fix error handling in mxs_lradc_probe()

From: Stefan Wahren
Date: Mon Dec 26 2016 - 17:04:44 EST



> Alexey Khoroshilov <khoroshilov@xxxxxxxxx> hat am 23. Dezember 2016 um 23:15 geschrieben:
>
>
> During transition to using devm_input_allocate_device()
> goto to resource deallocation block was replaced by return
> in case of error in iio_device_register().
> That is wrong since resources are left undeallocated.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Alexey Khoroshilov <khoroshilov@xxxxxxxxx>
> Fixes: 962ed43a3eac ("iio: mxs-lradc: remove mxs_lradc_ts_unregister")

Acked-by: Stefan Wahren <stefan.wahren@xxxxxxxx>

But since Ksenija's patch series [1] (which doesn't have this issue) this patch is only relevant for stable.

Thanks

[1] - http://marc.info/?l=linux-iio&m=148131774219426&w=2