This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 8eba3e76f32bb2d17b88ba13f633606fef61efe8 (commit) from 39be9572056ee715468214ad6d2d5c01054456d7 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 8eba3e76f32bb2d17b88ba13f633606fef61efe8 Author: Kevin Wang kevin.wang@arm.com Date: Mon Apr 10 13:43:05 2017 +0800
linux-gen: pktio: miss an unlock operation before exit if error happens
Just set the return value, and remove the return() function at the failure branch. https://bugs.linaro.org/show_bug.cgi?id=2933
Signed-off-by: Kevin Wang kevin.wang@arm.com Reviewed-by: Ola Liljedahl ola.liljedahl@arm.com Reviewed-by: Brian Brooks brian.brooks@arm.com Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c index 70962839..61e98ad8 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -176,7 +176,7 @@ static int loopback_send(pktio_entry_t *pktio_entry, int index ODP_UNUSED, pktio_entry->s.stats.out_octets += bytes; } else { ODP_DBG("queue enqueue failed %i\n", ret); - return -1; + ret = -1; }
odp_ticketlock_unlock(&pktio_entry->s.txl);
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/pktio/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive