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/ixgbe: fix intr callback unregister by adding retry
[dpdk.git]
/
drivers
/
net
/
nfp
/
nfp_nspu.c
diff --git
a/drivers/net/nfp/nfp_nspu.c
b/drivers/net/nfp/nfp_nspu.c
index
0b415fc
..
f908983
100644
(file)
--- a/
drivers/net/nfp/nfp_nspu.c
+++ b/
drivers/net/nfp/nfp_nspu.c
@@
-566,6
+566,7
@@
nfp_nsp_eth_config(nspu_desc_t *desc, int port, int up)
NSP_ETH_TABLE_SIZE, 0);
if (ret) {
rte_spinlock_unlock(&desc->nsp_lock);
NSP_ETH_TABLE_SIZE, 0);
if (ret) {
rte_spinlock_unlock(&desc->nsp_lock);
+ free(entries);
return ret;
}
return ret;
}
@@
-586,6
+587,7
@@
nfp_nsp_eth_config(nspu_desc_t *desc, int port, int up)
if (i == NSP_ETH_MAX_COUNT) {
rte_spinlock_unlock(&desc->nsp_lock);
if (i == NSP_ETH_MAX_COUNT) {
rte_spinlock_unlock(&desc->nsp_lock);
+ free(entries);
return -EINVAL;
}
return -EINVAL;
}
@@
-610,6
+612,7
@@
nfp_nsp_eth_config(nspu_desc_t *desc, int port, int up)
"Hw ethernet port %d configure failed\n", port);
}
rte_spinlock_unlock(&desc->nsp_lock);
"Hw ethernet port %d configure failed\n", port);
}
rte_spinlock_unlock(&desc->nsp_lock);
+ free(entries);
return ret;
}
return ret;
}