Author: markj
Date: Fri Oct 30 14:38:17 2020
New Revision: 367169
URL: https://svnweb.freebsd.org/changeset/base/367169

Log:
  MFC r366968:
  ntb: Fix an assertion to permit >= 32 doorbells

Modified:
  stable/12/sys/dev/ntb/ntb_transport.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/ntb/ntb_transport.c
==============================================================================
--- stable/12/sys/dev/ntb/ntb_transport.c       Fri Oct 30 14:37:51 2020        
(r367168)
+++ stable/12/sys/dev/ntb/ntb_transport.c       Fri Oct 30 14:38:17 2020        
(r367169)
@@ -355,7 +355,7 @@ ntb_transport_attach(device_t dev)
        spad_count = ntb_spad_count(dev);
        db_bitmap = ntb_db_valid_mask(dev);
        db_count = flsll(db_bitmap);
-       KASSERT(db_bitmap == (1 << db_count) - 1,
+       KASSERT(db_bitmap == ((uint64_t)1 << db_count) - 1,
            ("Doorbells are not sequential (%jx).\n", db_bitmap));
 
        if (nt->mw_count == 0) {
_______________________________________________
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