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/bnxt: support hotplug
[dpdk.git]
/
drivers
/
net
/
bnxt
/
bnxt_vnic.c
diff --git
a/drivers/net/bnxt/bnxt_vnic.c
b/drivers/net/bnxt/bnxt_vnic.c
index
c04c4c7
..
6297e87
100644
(file)
--- a/
drivers/net/bnxt/bnxt_vnic.c
+++ b/
drivers/net/bnxt/bnxt_vnic.c
@@
-229,6
+229,9
@@
void bnxt_free_vnic_mem(struct bnxt *bp)
struct bnxt_vnic_info *vnic;
uint16_t max_vnics, i;
+ if (bp->vnic_info == NULL)
+ return;
+
if (BNXT_PF(bp)) {
struct bnxt_pf_info *pf = &bp->pf;