From c073fde00e08b993255aa0b18594a1d83776d1fb Mon Sep 17 00:00:00 2001 From: Michael Hennerich Date: Thu, 24 Feb 2011 16:34:52 +0100 Subject: [PATCH] --- yaml --- r: 236143 b: refs/heads/master c: 2bf99c70cee1d9347145ec0d96ba39764e2193bc h: refs/heads/master i: 236141: 7c7d7d50a92a0694d947aa7eb1df465ab82d7afe 236139: 272fa522ba7a3d6e02bda2f6990609ea9484e1c5 236135: 4abf80dddc89f5e2361b920f73181971a83166fa 236127: acfeef3a7b7566fcb0e554d61074811b3628ed88 v: v3 --- [refs] | 2 +- trunk/drivers/staging/iio/Documentation/iio_utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index b616f1c45d3a..3c4c1fefa376 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cb771cbdbdb153b68275cd5b9eca593c4e5026e8 +refs/heads/master: 2bf99c70cee1d9347145ec0d96ba39764e2193bc diff --git a/trunk/drivers/staging/iio/Documentation/iio_utils.h b/trunk/drivers/staging/iio/Documentation/iio_utils.h index 3cf01a532b55..4b023aa14198 100644 --- a/trunk/drivers/staging/iio/Documentation/iio_utils.h +++ b/trunk/drivers/staging/iio/Documentation/iio_utils.h @@ -374,7 +374,7 @@ inline int build_channel_array(const char *device_dir, } } /* reorder so that the array is in index order*/ - current = malloc(sizeof(**ci_array)**counter); + current = malloc(sizeof(**ci_array)*(*counter)); if (current == NULL) { ret = -ENOMEM; goto error_cleanup_array;