diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-07-13 17:07:31 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-07-13 17:07:31 +0300 |
commit | 13ae91af60d74155ee3666115d7aa2ac4e441087 (patch) | |
tree | 65312c581869fa6d61952d7a2bacb1294098c5da /test/performance/odp_scheduling.c | |
parent | 9ce4c3abbcf10d13f17e43db9fa0346698e32bc5 (diff) | |
parent | f98df8bbdb991fa1257d42924c75847122549db6 (diff) |
Merge branch 'master' into api-next
Diffstat (limited to 'test/performance/odp_scheduling.c')
-rw-r--r-- | test/performance/odp_scheduling.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c index 8fa77347d..889ce1c0d 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -535,9 +535,13 @@ static int test_schedule_multi(const char *str, int thr, } /* Assume we can enqueue all events */ - if (odp_queue_enq_multi(queue, ev, MULTI_BUFS_MAX) != - MULTI_BUFS_MAX) { + num = odp_queue_enq_multi(queue, ev, MULTI_BUFS_MAX); + if (num != MULTI_BUFS_MAX) { LOG_ERR(" [%i] Queue enqueue failed.\n", thr); + j = num < 0 ? 0 : num; + for ( ; j < MULTI_BUFS_MAX; j++) + odp_event_free(ev[j]); + return -1; } } |