Date: Thu, 6 Apr 2017 13:58:59 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316571 - head/sys/dev/cxgbe/iw_cxgbe Message-ID: <201704061358.v36Dwx1x083192@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704061358.v36Dwx1x083192>