]> git.sur5r.net Git - u-boot/commitdiff
crypto/fsl: Fix RNG instantiation failure.
authorgaurav rana <gaurav.rana@freescale.com>
Thu, 4 Dec 2014 07:30:41 +0000 (13:00 +0530)
committerYork Sun <yorksun@freescale.com>
Mon, 15 Dec 2014 17:16:26 +0000 (09:16 -0800)
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>
drivers/crypto/fsl/jr.c

index 29681e18a6d0398558382e3944d063a0912db3d8..f9d493883452016f59e2669495fb35295bca2f5a 100644 (file)
@@ -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) {