public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH][v2] crypto/fsl: Fix RNG instantiation failure.
@ 2014-12-04  7:30 Gaurav Rana
  2014-12-16 17:20 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Gaurav Rana @ 2014-12-04  7:30 UTC (permalink / raw)
  To: u-boot

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>
---
Changes from v1:
Corrected typo in Subject message

 drivers/crypto/fsl/jr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-16 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04  7:30 [U-Boot] [PATCH][v2] crypto/fsl: Fix RNG instantiation failure Gaurav Rana
2014-12-16 17:20 ` York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox