summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/driver.c
diff options
context:
space:
mode:
authorKamenee Arumugam <kamenee.arumugam@intel.com>2018-02-01 21:37:30 +0100
committerJason Gunthorpe <jgg@mellanox.com>2018-02-01 23:43:32 +0100
commit953a9cebeab43f33baed79d1a9ef643bfb249c4b (patch)
tree139004705604d5121675065b3ec0ebd26ce5b9a3 /drivers/infiniband/hw/hfi1/driver.c
parentIB/core: Avoid a potential OOPs for an unused optional parameter (diff)
downloadlinux-953a9cebeab43f33baed79d1a9ef643bfb249c4b.tar.xz
linux-953a9cebeab43f33baed79d1a9ef643bfb249c4b.zip
IB/hfi1: Convert kzalloc_node and kcalloc to use kcalloc_node
Kzalloc_node API doesn't check for overflows in size multiplication. While kcalloc API check for overflows in size multiplication but these implementations are not NUMA-aware. This conversion allowed for correcting an allocation used in the hot path to be on the local NUMA and ensure us overflow free multiplication for the size of a memory allocation. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Kamenee Arumugam <kamenee.arumugam@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/driver.c')
0 files changed, 0 insertions, 0 deletions