Author: avos
Date: Wed Jan  2 17:13:55 2019
New Revision: 342700
URL: https://svnweb.freebsd.org/changeset/base/342700

Log:
  rtwn_pci(4): fix panic with INVARIANTS (due to inverted assertion logic)
  
  MFC after:    4 days

Modified:
  head/sys/dev/rtwn/pci/rtwn_pci_rx.c

Modified: head/sys/dev/rtwn/pci/rtwn_pci_rx.c
==============================================================================
--- head/sys/dev/rtwn/pci/rtwn_pci_rx.c Wed Jan  2 17:09:35 2019        
(r342699)
+++ head/sys/dev/rtwn/pci/rtwn_pci_rx.c Wed Jan  2 17:13:55 2019        
(r342700)
@@ -193,7 +193,7 @@ rtwn_pci_rx_buf_copy(struct rtwn_pci_softc *pc)
         * descriptor - same as for PCIe, but without rxbufaddr* fields.
         */
        desc_size = sizeof(struct rtwn_rx_stat_common);
-       KASSERT(sizeof(pc->pc_rx_buf) < desc_size,
+       KASSERT(sizeof(pc->pc_rx_buf) >= desc_size,
            ("adjust size for PCIe Rx buffer!"));
 
        memcpy(pc->pc_rx_buf, rx_desc, desc_size);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to