linux_dsm_epyc7002/drivers/infiniband/hw/hns
Markus Elfring 4418b27b52 IB/hns: Use kcalloc() in hns_roce_buddy_init()
* Multiplications for the size determination of memory allocations
  indicated that array data structures should be processed.
  Thus use the corresponding function "kcalloc".

  This issue was detected by using the Coccinelle software.

* Replace the specification of data types by pointer dereferences
  to make the corresponding size determinations a bit safer according to
  the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-20 16:31:49 -04:00
..
hns_roce_ah.c IB/core: Let create_ah return extended response to user 2016-12-13 13:38:27 -05:00
hns_roce_alloc.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_cmd.c IB/hns: Use kmalloc_array() in hns_roce_cmd_use_events() 2017-04-20 16:31:49 -04:00
hns_roce_cmd.h IB/hns: Fix the bug when free mr 2016-12-03 14:20:42 -05:00
hns_roce_common.h IB/hns: Fix the bug when free cq 2016-12-03 14:20:42 -05:00
hns_roce_cq.c IB/hns: Move HNS RoCE user vendor structures 2016-12-03 14:23:14 -05:00
hns_roce_device.h Merge branch 'mlx' into merge-test 2016-12-14 14:44:25 -05:00
hns_roce_eq.c IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c IB/hns: Fix for Checkpatch.pl comment style errors 2016-12-03 14:20:42 -05:00
hns_roce_hem.h IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_hw_v1.c IB/hns: Explicitly include linux/of.h 2017-04-05 13:45:53 -04:00
hns_roce_hw_v1.h IB/hns: Fix the bug when free mr 2016-12-03 14:20:42 -05:00
hns_roce_main.c This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
hns_roce_mr.c IB/hns: Use kcalloc() in hns_roce_buddy_init() 2017-04-20 16:31:49 -04:00
hns_roce_pd.c IB/hns: Change qpn allocation to round-robin mode. 2016-12-03 14:20:42 -05:00
hns_roce_qp.c IB/hns: Switch from dma_device to dev.parent 2017-01-24 12:23:35 -05:00
Kconfig
Makefile