aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBalakrishna Garapati <balakrishna.garapati@linaro.org>2016-04-11 11:11:49 +0200
committerMike Holmes <mike.holmes@linaro.org>2016-05-03 17:27:03 -0400
commit7c27b1e270678a4b7aa1ab9a791a8aea9366b59a (patch)
treee8bc798f99e34902c1d519d545ed1b82120c434b /test
parent693cabe510094121dcac58fed2672b6c67320f7d (diff)
test: performance: return when pkt alloc fails
Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return over packet allocation failure. Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org> Reviewed-by: Maxim Uvarov <maxim.uvarov@linaro.org> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Diffstat (limited to 'test')
-rw-r--r--test/performance/odp_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c
index c3a2bab7e..595a2667e 100644
--- a/test/performance/odp_crypto.c
+++ b/test/performance/odp_crypto.c
@@ -549,7 +549,7 @@ run_measure_one(crypto_args_t *cargs,
payload_length);
if (pkt == ODP_PACKET_INVALID) {
app_err("failed to allocate buffer\n");
- rc = -1;
+ return -1;
} else {
void *mem = odp_packet_data(pkt);