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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to