staging:iio:core add missing increment of loop index in iio_map_array_unregister()
authorLothar Waßmann <LW@KARO-electronics.de>
Sat, 24 Mar 2012 06:19:25 +0000 (07:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 16:17:33 +0000 (09:17 -0700)
staging:iio:core add missing increment of loop index in iio_map_array_unregister()

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/inkern.c

index de2c8ea649653f9eb50be0eb0b571fdc53792483..ef07a02bf5421b662e95e3dffde2a0aebc42898a 100644 (file)
@@ -82,6 +82,7 @@ int iio_map_array_unregister(struct iio_dev *indio_dev,
                        ret = -ENODEV;
                        goto error_ret;
                }
+               i++;
        }
 error_ret:
        mutex_unlock(&iio_map_list_lock);