Re: [PATCH for-next] IB/hfi1: Convert kzalloc_node and kcalloc to use kcalloc_node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 01, 2018 at 12:37:30PM -0800, Dennis Dalessandro wrote:
> From: Kamenee Arumugam <kamenee.arumugam@xxxxxxxxx>
> 
> 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@xxxxxxxxx>
> Signed-off-by: Kamenee Arumugam <kamenee.arumugam@xxxxxxxxx>
> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx>
>  drivers/infiniband/hw/hfi1/init.c |   17 +++++++++--------
>  drivers/infiniband/hw/hfi1/pio.c  |   15 ++++++++-------
>  drivers/infiniband/hw/hfi1/sdma.c |    3 ++-
>  3 files changed, 19 insertions(+), 16 deletions(-)

Applied to for-next

Thanks,
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux