Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iiod: Avoid race between buffer destroy and set buffers count
The client might call iio_device_set_kernel_buffers_count() right after destroying the device's buffer with iio_buffer_destroy(). Since the first operation cannot work if the buffer is enabled, we must wait until the buffer has been effectively disabled before the setting can be applied. Signed-off-by: Paul Cercueil <[email protected]>
- Loading branch information