On Thu, Feb 26, 2015 at 4:56 PM, Taras Kondratiuk <
[email protected]> wrote:

> Signed-off-by: Taras Kondratiuk <[email protected]>
>

Reviewed-by: Bill Fischofer <[email protected]>


> ---
>  test/validation/crypto/odp_crypto_test_async_inp.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/test/validation/crypto/odp_crypto_test_async_inp.c
> b/test/validation/crypto/odp_crypto_test_async_inp.c
> index aff93da..9e4e9f1 100644
> --- a/test/validation/crypto/odp_crypto_test_async_inp.c
> +++ b/test/validation/crypto/odp_crypto_test_async_inp.c
> @@ -92,8 +92,8 @@ static void alg_test(enum odp_crypto_op op,
>
>         rc = odp_crypto_operation(&op_params, &posted, NULL);
>         if (rc < 0) {
> -               odp_packet_free(pkt);
> -               CU_FAIL_FATAL("Failed odp_crypto_operation()");
> +               CU_FAIL("Failed odp_crypto_operation()");
> +               goto cleanup;
>         }
>         CU_ASSERT(posted);
>
> @@ -112,7 +112,7 @@ static void alg_test(enum odp_crypto_op op,
>         CU_ASSERT(!memcmp(data_addr, output_vec, output_vec_len));
>
>         CU_ASSERT(result.ctx == (void *)0xdeadbeef);
> -
> +cleanup:
>         rc = odp_crypto_session_destroy(session);
>         CU_ASSERT(!rc);
>
> --
> 1.9.1
>
>
> _______________________________________________
> lng-odp mailing list
> [email protected]
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to