linux-stable/drivers/infiniband/hw/cxgb4
Steve Wise 7b72717a20 iw_cxgb4: correctly enforce the max reg_mr depth
The code was mistakenly using the length of the page array memory instead
of the depth of the page array.

This would cause MR creation to fail in some cases.

Fixes: 8376b86de7 ("iw_cxgb4: Support the new memory registration API")
Cc: stable@vger.kernel.org
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-06-25 15:27:51 -06:00
..
cm.c iw_cxgb4: always set iw_cm_id.provider_data 2018-05-22 14:32:30 -04:00
cq.c iw_cxgb4: Atomically flush per QP HW CQEs 2018-04-27 14:38:44 -04:00
device.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
ev.c iw_cxgb4: Change error/warn prints to pr_debug 2017-12-29 11:09:23 -07:00
id_table.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
iw_cxgb4.h Merge branch 'k.o/for-rc' into k.o/wip/dl-for-next 2018-05-09 15:48:48 -04:00
Kconfig iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency 2018-06-04 09:35:24 -06:00
Makefile iw_cxgb4: dump detailed driver-specific QP information 2018-05-03 15:51:27 -04:00
mem.c iw_cxgb4: correctly enforce the max reg_mr depth 2018-06-25 15:27:51 -06:00
provider.c iw_cxgb4: dump detailed driver-specific QP information 2018-05-03 15:51:27 -04:00
qp.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
resource.c RDMA/cxgb4: release hw resources on device removal 2018-04-27 13:52:31 -04:00
restrack.c iw_cxgb4: provide detailed driver-specific MR information 2018-05-24 09:39:25 -06:00
t4.h Merge branch 'from-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git 2017-12-27 21:50:46 -07:00
t4fw_ri_api.h RDMA/cxgb4: Annotate r2 and stag as __be32 2017-11-10 13:04:09 -05:00