summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgaurav rana <gaurav.rana@freescale.com>2014-12-04 13:00:41 +0530
committerYork Sun <yorksun@freescale.com>2014-12-15 09:16:26 -0800
commit851c9dbad200538bdd181c7d7db98300911fc100 (patch)
treee181cc948bf39d820e00caffa4482fddd40065ec
parent2a8b34220dcf2b99fd71c8190ac6689a87102c66 (diff)
downloadu-boot-imx-851c9dbad200538bdd181c7d7db98300911fc100.zip
u-boot-imx-851c9dbad200538bdd181c7d7db98300911fc100.tar.gz
u-boot-imx-851c9dbad200538bdd181c7d7db98300911fc100.tar.bz2
crypto/fsl: Fix RNG instantiation failure.
Corrected the order of arguments in memset in run_descriptor function. Wrong order of argumnets led to improper initialization of members of struct type result. This resulted in RNG instantiation error. Signed-off-by: Gaurav Rana <gaurav.rana@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
-rw-r--r--drivers/crypto/fsl/jr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c
index 29681e1..f9d4938 100644
--- a/drivers/crypto/fsl/jr.c
+++ b/drivers/crypto/fsl/jr.c
@@ -246,7 +246,7 @@ int run_descriptor_jr(uint32_t *desc)
struct result op;
int ret = 0;
- memset(&op, sizeof(op), 0);
+ memset(&op, 0, sizeof(op));
ret = jr_enqueue(desc, desc_done, &op);
if (ret) {