Merged,
Maxim.
On 02/27/2015 01:53 AM, Robbie King (robking) wrote:
Reviewed-by: Robert King <[email protected]>
-----Original Message-----
From: Taras Kondratiuk [mailto:[email protected]]
Sent: Thursday, February 26, 2015 5:48 PM
To: [email protected]
Cc: Robbie King (robking); Taras Kondratiuk
Subject: [PATCH] linux-generic: crypto: check 'result' pointer
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 */
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp