Commit 851c9dbad200538bdd181c7d7db98300911fc100

Authored by gaurav rana
Committed by York Sun
1 parent 2a8b34220d

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/crypto/fsl/jr.c
... ... @@ -246,7 +246,7 @@
246 246 struct result op;
247 247 int ret = 0;
248 248  
249   - memset(&op, sizeof(op), 0);
  249 + memset(&op, 0, sizeof(op));
250 250  
251 251 ret = jr_enqueue(desc, desc_done, &op);
252 252 if (ret) {