svn commit: r316571 - head/sys/dev/cxgbe/iw_cxgbe
Navdeep Parhar
np at FreeBSD.org
Thu Apr 6 13:59:00 UTC 2017
Author: np
Date: Thu Apr 6 13:58:59 2017
New Revision: 316571
URL: https://svnweb.freebsd.org/changeset/base/316571
Log:
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
Modified:
head/sys/dev/cxgbe/iw_cxgbe/mem.c
Modified: head/sys/dev/cxgbe/iw_cxgbe/mem.c
==============================================================================
--- head/sys/dev/cxgbe/iw_cxgbe/mem.c Thu Apr 6 13:51:54 2017 (r316570)
+++ head/sys/dev/cxgbe/iw_cxgbe/mem.c Thu Apr 6 13:58:59 2017 (r316571)
@@ -514,7 +514,7 @@ struct ib_mr *c4iw_register_phys_mem(str
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)
More information about the svn-src-all
mailing list