]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rdma: Use kcalloc instead of kzalloc
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Tue, 9 Feb 2016 22:06:27 +0000 (17:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2016 01:43:09 +0000 (17:43 -0800)
commitd0e128da35c0c14369999888802120c5daf65aac
treeb66b0711a1f4385f96157836651c915e29f37da1
parent4417805dd0cf66a133ebb5eab69f3001164e9f3d
staging: rdma: Use kcalloc instead of kzalloc

Use kcalloc rather than kzalloc when multiplied by size to prevent
integer overflows. This change also makes code nicer to read.

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/efivar.c