Commit 3c073478 authored by Johannes Thumshirn's avatar Johannes Thumshirn Committed by Linus Torvalds

drivers/infiniband/sw/rdmavt/qp.c: use kmalloc_array_node()

Now that we have a NUMA-aware version of kmalloc_array() we can use it
instead of kmalloc_node() without an overflow check in the size

Link: default avatarJohannes Thumshirn <>
Reviewed-by: default avatarChristoph Lameter <>
Cc: Christoph Hellwig <>
Cc: Damien Le Moal <>
Cc: David Rientjes <>
Cc: "David S. Miller" <>
Cc: Doug Ledford <>
Cc: Hal Rosenstock <>
Cc: Jens Axboe <>
Cc: Joonsoo Kim <>
Cc: Mike Marciniszyn <>
Cc: Pekka Enberg <>
Cc: Santosh Shilimkar <>
Cc: Sean Hefty <>
Cc: Vlastimil Babka <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 7d502071
......@@ -238,7 +238,7 @@ int rvt_driver_qp_init(struct rvt_dev_info *rdi)
rdi->qp_dev->qp_table_size = rdi->dparms.qp_table_size;
rdi->qp_dev->qp_table_bits = ilog2(rdi->dparms.qp_table_size);
rdi->qp_dev->qp_table =
kmalloc_node(rdi->qp_dev->qp_table_size *
GFP_KERNEL, rdi->dparms.node);
if (!rdi->qp_dev->qp_table)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment