cxgbe/iw_cxgbe: Remove bad cast that resulted in incorrect length for

memory regions larger than 4GB.

MFC after:	3 days
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2017-04-06 13:58:59 +00:00
parent c9dd0b48c9
commit 870b2660d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316571

View File

@ -514,7 +514,7 @@ struct ib_mr *c4iw_register_phys_mem(struct ib_pd *pd,
mhp->attr.va_fbo = *iova_start;
mhp->attr.page_size = shift - 12;
mhp->attr.len = (u32) total_size;
mhp->attr.len = total_size;
mhp->attr.pbl_size = npages;
ret = register_mem(rhp, php, mhp, shift);
if (ret)