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)
commit5a267953baca23c49f78a2e365aa0f44f762b0c1
treeb66b0711a1f4385f96157836651c915e29f37da1
parentb3232842dbef8e6356af75b3a98ea7f752879bc8
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