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