rtwn_pci(4): fix panic with INVARIANTS (due to inverted assertion logic)

MFC after:	4 days
This commit is contained in:
Andriy Voskoboinyk 2019-01-02 17:13:55 +00:00
parent d7fffd0689
commit 0fe1808c72
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342700

View File

@ -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);