mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
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 Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Meyer <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>