The patch titled Subject: drivers/infiniband/sw/rdmavt/qp.c: use kmalloc_array_node() has been added to the -mm tree. Its filename is ib-rdmavt-use-kmalloc_array_node.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/ib-rdmavt-use-kmalloc_array_node.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/ib-rdmavt-use-kmalloc_array_node.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Johannes Thumshirn <jthumshirn@xxxxxxx> Subject: 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 calculation. Link: http://lkml.kernel.org/r/20170927082038.3782-5-jthumshirn@xxxxxxx Signed-off-by: Johannes Thumshirn <jthumshirn@xxxxxxx> Reviewed-by: Christoph Lameter <cl@xxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Cc: Damien Le Moal <damien.lemoal@xxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Cc: Doug Ledford <dledford@xxxxxxxxxx> Cc: Hal Rosenstock <hal.rosenstock@xxxxxxxxx> Cc: Jens Axboe <axboe@xxxxxxxxx> Cc: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> Cc: Mike Marciniszyn <infinipath@xxxxxxxxx> Cc: Pekka Enberg <penberg@xxxxxxxxxx> Cc: Santosh Shilimkar <santosh.shilimkar@xxxxxxxxxx> Cc: Sean Hefty <sean.hefty@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/infiniband/sw/rdmavt/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/infiniband/sw/rdmavt/qp.c~ib-rdmavt-use-kmalloc_array_node drivers/infiniband/sw/rdmavt/qp.c --- a/drivers/infiniband/sw/rdmavt/qp.c~ib-rdmavt-use-kmalloc_array_node +++ a/drivers/infiniband/sw/rdmavt/qp.c @@ -238,7 +238,7 @@ int rvt_driver_qp_init(struct rvt_dev_in 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 * + kmalloc_array_node(rdi->qp_dev->qp_table_size, sizeof(*rdi->qp_dev->qp_table), GFP_KERNEL, rdi->dparms.node); if (!rdi->qp_dev->qp_table) _ Patches currently in -mm which might be from jthumshirn@xxxxxxx are mm-add-kmalloc_array_node-and-kcalloc_node.patch block-use-kmalloc_array_node.patch ib-qib-use-kmalloc_array_node.patch ib-rdmavt-use-kmalloc_array_node.patch mm-mempool-use-kmalloc_array_node.patch rds-ib-use-kmalloc_array_node.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html