Title: [9660] trunk/drivers/staging/iio/Documentation/iio_utils.h: merge from upstream: Staging: iio: --/++ confusion in build_channel_array() error cleanup
- Revision
- 9660
- Author
- vapier
- Date
- 2011-03-01 16:16:42 -0500 (Tue, 01 Mar 2011)
Log Message
merge from upstream: Staging: iio: --/++ confusion in build_channel_array() error cleanup
From: roel kluin <[email protected]>
Fix loop: it should decrement
Signed-off-by: Roel Kluin <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Modified Paths
Diff
Modified: trunk/drivers/staging/iio/Documentation/iio_utils.h (9659 => 9660)
--- trunk/drivers/staging/iio/Documentation/iio_utils.h 2011-03-01 20:58:20 UTC (rev 9659)
+++ trunk/drivers/staging/iio/Documentation/iio_utils.h 2011-03-01 21:16:42 UTC (rev 9660)
@@ -398,7 +398,7 @@
return 0;
error_cleanup_array:
- for (i = count - 1; i >= 0; i++)
+ for (i = count - 1; i >= 0; i--)
free((*ci_array)[i].name);
free(*ci_array);
error_close_dir:
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits