From: gaurav rana Date: Thu, 4 Dec 2014 07:30:41 +0000 (+0530) Subject: crypto/fsl: Fix RNG instantiation failure. X-Git-Tag: v2015.01-rc4~23^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=851c9dbad200538bdd181c7d7db98300911fc100;p=oweals%2Fu-boot.git 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 Reviewed-by: York Sun --- diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index 29681e18a6..f9d4938834 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) {