Loading
iio: buffer: Fix wait_queue not being removed
In the edge case where the IIO device is unregistered while we're buffering, we were directly returning an error without removing the wait queue. Instead, set 'ret' and break out of the loop. Fixes: 9eeee3b0 ("iio: Add output buffer support") Signed-off-by:Nuno Sá <nuno.sa@analog.com> Reviewed-by:
David Lechner <dlechner@baylibre.com> Cc: <Stable@vger.kernel.org> Signed-off-by:
Jonathan Cameron <Jonathan.Cameron@huawei.com>