commit | d83fb184945cd2daaafd33a702bba9cb7ed502bf | [log] [tgz] |
---|---|---|
author | Thomas Meyer <thomas@m3y3r.de> | Tue Nov 29 22:08:00 2011 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed Nov 30 19:37:33 2011 +0900 |
tree | eb13dc818416eecbc1a31b564b76fe292021b40d | |
parent | 201320435d017e8ebd449034547ef0518ec4d056 [diff] |
staging: iio: Use kcalloc instead of kzalloc to allocate array The advantage of kcalloc is, that will prevent integer overflows which could result from the multiplication of number of elements and size and it is also a bit nicer to read. The semantic patch that makes this change is available in https://lkml.org/lkml/2011/11/25/107 Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>