Make sure to properly initialize the IIO buffer data structure. Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx> --- drivers/iio/buffer_cb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/buffer_cb.c b/drivers/iio/buffer_cb.c index 578f719..841fec1 100644 --- a/drivers/iio/buffer_cb.c +++ b/drivers/iio/buffer_cb.c @@ -41,6 +41,8 @@ struct iio_cb_buffer *iio_channel_get_all_cb(struct device *dev, goto error_ret; } + iio_buffer_init(&cb_buff->buffer); + cb_buff->private = private; cb_buff->cb = cb; cb_buff->buffer.access = &iio_cb_access; -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html