On 06/30/2012 02:52 PM, Jonathan Cameron wrote: > @@ -106,11 +108,12 @@ static int iio_read_first_n_kfifo(struct iio_buffer *r, > int ret, copied; > struct iio_kfifo *kf = iio_to_kfifo(r); > > - if (n < r->bytes_per_datum) > + if (n < r->bytes_per_datum || r->bytes_per_datum == 0) > return -EINVAL; Strictly speaking this is a unrelated change, but well... I'll apply the kfifo patches to my IIO working tree and see if I'll get any issues. - Lars -- 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