Check 'result' pointer before dereferencing it in case of synchronous operation.
Signed-off-by: Taras Kondratiuk <[email protected]> --- platform/linux-generic/odp_crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 2f13e2f..f7e6e02 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -435,6 +435,8 @@ odp_crypto_operation(odp_crypto_op_params_t *params, *posted = 1; } else { /* Synchronous, simply return results */ + if (!result) + return -1; *result = local_result; /* Indicate to caller operation was sync */ -- 1.9.1 _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
