Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0a53044 authored by Michael Hennerich's avatar Michael Hennerich Committed by Greg Kroah-Hartman
Browse files

staging: iio: iio_ring_rip_outer return immediately if rip_lots returns <= 0

parent 2bb32e84
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -105,7 +105,7 @@ static ssize_t iio_ring_rip_outer(struct file *filp, char __user *buf,
		return -EINVAL;
		return -EINVAL;
	copied = rb->access.rip_lots(rb, count, &data, &dead_offset);
	copied = rb->access.rip_lots(rb, count, &data, &dead_offset);


	if (copied < 0) {
	if (copied <= 0) {
		ret = copied;
		ret = copied;
		goto error_ret;
		goto error_ret;
	}
	}