ena: Fix invalid KASSERT test in netmap code
The KASSERT was originally added to ensure that the netmap Rx ring is not NULL, however, it was checking for the opposite. Obtained from: Semihalf MFC after: 2 weeks Sponsored by: Amazon, Inc.
This commit is contained in:
parent
8f15f8a72b
commit
79770fdad6
@ -206,7 +206,7 @@ ena_netmap_free_rx_slot(struct ena_adapter *adapter, struct ena_ring *rx_ring,
|
||||
BUS_DMASYNC_POSTREAD);
|
||||
netmap_unload_map(na, adapter->rx_buf_tag, rx_info->map);
|
||||
|
||||
KASSERT(kring->ring == NULL, ("Netmap Rx ring is NULL\n"));
|
||||
KASSERT(kring->ring != NULL, ("Netmap Rx ring is NULL\n"));
|
||||
|
||||
slot = &kring->ring->slot[nm_i];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user