summaryrefslogtreecommitdiff
path: root/drivers/staging/rdma/ipath/ipath_init_chip.c
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-10-09 15:33:26 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-13 03:35:21 (GMT)
commit314fcc0d53261a984788d09a1076c17a919504fe (patch)
treefea5c8109dcbbdebf27632bf57c560960fbe7ebb /drivers/staging/rdma/ipath/ipath_init_chip.c
parent4ecc4a18d987e7e9f4b7eff2bf9215ac02c8a980 (diff)
downloadlinux-314fcc0d53261a984788d09a1076c17a919504fe.tar.xz
Staging: rdma: hfi1: 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>
Diffstat (limited to 'drivers/staging/rdma/ipath/ipath_init_chip.c')
0 files changed, 0 insertions, 0 deletions