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
app/testpmd: fix potential memory leak
[dpdk.git]
/
drivers
/
crypto
/
aesni_mb
/
rte_aesni_mb_pmd_ops.c
diff --git
a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c
b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c
index
2e52ac2
..
3b3ef0c
100644
(file)
--- a/
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c
+++ b/
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c
@@
-397,7
+397,7
@@
aesni_mb_pmd_qp_set_unique_name(struct rte_cryptodev *dev,
"aesni_mb_pmd_%u_qp_%u",
dev->data->dev_id, qp->id);
"aesni_mb_pmd_%u_qp_%u",
dev->data->dev_id, qp->id);
- if (n > sizeof(qp->name))
+ if (n >
=
sizeof(qp->name))
return -1;
return 0;
return -1;
return 0;
@@
-415,7
+415,7
@@
aesni_mb_pmd_qp_create_processed_ops_ring(struct aesni_mb_qp *qp,
"%s_%s",
qp->name, str);
"%s_%s",
qp->name, str);
- if (n > sizeof(ring_name))
+ if (n >
=
sizeof(ring_name))
return NULL;
r = rte_ring_lookup(ring_name);
return NULL;
r = rte_ring_lookup(ring_name);