Christophe JAILLET
9c19fb86a8
crypto: caam - Clear some memory in instantiate_rng
...
According to the comment at the end of the 'for' loop just a few lines
below, it looks needed to clear 'desc'.
So it should also be cleared for the first iteration.
Move the memset() to the beginning of the loop to be safe.
Fixes: 281922a1d4f5 ("crypto: caam - add support for SEC v5.x RNG4")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-03-31 17:50:09 +08:00
..
2023-01-13 16:39:04 +08:00
2023-03-24 18:22:28 +08:00
2022-12-02 18:12:40 +08:00
2023-03-14 17:06:45 +08:00
2023-02-13 18:34:49 +08:00
2023-02-13 18:34:49 +08:00
2023-03-31 17:50:09 +08:00
2023-03-17 11:16:43 +08:00
2023-03-17 11:16:43 +08:00
2023-03-14 17:06:42 +08:00
2023-02-13 18:34:49 +08:00
2022-09-02 18:15:53 +08:00
2023-03-17 11:16:43 +08:00
2023-03-14 17:06:44 +08:00
2023-03-24 18:22:28 +08:00
2023-02-14 13:39:33 +08:00
2023-02-14 13:39:33 +08:00
2023-03-17 11:16:43 +08:00
2023-03-14 17:06:44 +08:00
2022-11-11 18:14:59 +08:00
2023-03-24 18:22:28 +08:00
2023-02-21 18:10:50 -08:00
2022-12-08 23:57:47 +11:00
2022-03-09 15:12:31 +12:00
2017-11-02 11:10:55 +01:00
2023-02-13 18:34:49 +08:00
2020-11-20 14:45:33 +11:00
2023-02-21 18:10:50 -08:00
2023-02-21 18:10:50 -08:00
2023-02-21 18:10:50 -08:00
2023-03-17 11:16:43 +08:00
2017-11-02 11:10:55 +01:00
2023-02-13 18:35:14 +08:00
2017-11-02 11:10:55 +01:00
2023-02-13 18:34:49 +08:00
2019-08-09 15:11:59 +10:00
2021-04-16 21:16:31 +10:00
2019-10-23 19:46:56 +11:00
2023-03-24 18:22:28 +08:00
2023-03-24 18:22:28 +08:00
2023-02-13 18:34:49 +08:00
2023-03-24 18:22:28 +08:00
2023-02-03 12:55:59 +08:00
2023-02-13 18:34:49 +08:00
2017-11-02 11:10:55 +01:00
2022-10-21 19:15:35 +08:00
2017-11-02 11:10:55 +01:00
2020-06-04 22:03:39 +10:00
2022-07-15 16:43:21 +08:00
2020-07-16 21:49:02 +10:00
2021-08-21 15:44:53 +08:00
2019-06-19 17:09:55 +02:00
2022-07-15 16:43:21 +08:00
2022-12-02 18:12:40 +08:00
2020-08-20 14:04:28 +10:00
2020-11-20 14:45:33 +11:00
2022-08-19 18:39:35 +08:00
2023-02-13 18:35:14 +08:00
2023-03-24 18:22:28 +08:00
2022-07-15 16:43:22 +08:00
2023-03-24 18:22:28 +08:00
2023-02-13 18:35:14 +08:00
2022-10-21 19:05:24 +08:00