Skip to content

Commit

Permalink
s390/crypto: use store_tod_clock_ext()
Browse files Browse the repository at this point in the history
Use store_tod_clock_ext() in order to be able to get rid
get_tod_clock_ext().

Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
  • Loading branch information
hcahca authored and Vasily Gorbik committed Feb 13, 2021
1 parent 01f224b commit fc4a925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/crypto/prng.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static int __init prng_sha512_instantiate(void)
}

/* append the seed by 16 bytes of unique nonce */
get_tod_clock_ext(seed + seedlen);
store_tod_clock_ext((union tod_clock *)(seed + seedlen));
seedlen += 16;

/* now initial seed of the prno drng */
Expand Down

0 comments on commit fc4a925

Please sign in to comment.