staging: iio: ring_sw: Fix incorrect test on successful read of last value, causes...
authorJonathan Cameron <jic23@cam.ac.uk>
Tue, 30 Mar 2010 16:45:04 +0000 (17:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:30:09 +0000 (09:30 -0700)
commit4845187b39b79e3c1d4474c2767ddc7fb493eb05
tree78743d925597e96220b6a1d63fdd3f72bac1f766
parenta8947fcf3bbeda9fc6ff1205e51f8ff1b0128cc4
staging: iio: ring_sw: Fix incorrect test on successful read of last value, causes infinite loop

This is a bad one. The test means that almost no reads of the last
value ever succeed!  Result is an infinite loop.

Another one for the 'oops' category.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/ring_sw.c