]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: unisys: Use kcalloc instead of kzalloc to allocate array
authorShraddha Barke <shraddha.6596@gmail.com>
Fri, 9 Oct 2015 15:33:28 +0000 (21:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:49:29 +0000 (20:49 -0700)
commitd3129498d32c8cbdccd28bd880e07ffc3998c52e
tree2f2d8f5ec75e882dab8ebb1bc4d3fc99fa66791a
parent1f3d9c5015b75ee35a700ef06476df1c2bf34753
Staging: unisys: 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.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c