From: Thomas Meyer Date: Tue, 29 May 2012 22:06:21 +0000 (-0700) Subject: mm: use kcalloc() instead of kzalloc() to allocate array X-Git-Tag: v3.5-rc1~49^2~167 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d67d860531ad5378dedfad7661c540f3365013d;p=pandora-kernel.git mm: 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed