git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/mlx5: add C++ include guard to public header
[dpdk.git]
/
drivers
/
net
/
bnxt
/
bnxt_rxq.c
diff --git
a/drivers/net/bnxt/bnxt_rxq.c
b/drivers/net/bnxt/bnxt_rxq.c
index
9f1d1d4
..
cd3bb14
100644
(file)
--- a/
drivers/net/bnxt/bnxt_rxq.c
+++ b/
drivers/net/bnxt/bnxt_rxq.c
@@
-214,7
+214,9
@@
void bnxt_rx_queue_release_mbufs(struct bnxt_rx_queue *rxq)
}
}
/* Free up mbufs in Agg ring */
- if (!bnxt_need_agg_ring(rxq->bp->eth_dev))
+ if (rxq->bp == NULL ||
+ rxq->bp->eth_dev == NULL ||
+ !bnxt_need_agg_ring(rxq->bp->eth_dev))
return;
sw_ring = rxq->rx_ring->ag_buf_ring;