Skip to content
Commit cacc6e22 authored by Mario Limonciello's avatar Mario Limonciello Committed by Linus Torvalds
Browse files

tpm: Add a helper for checking hwrng enabled



The same checks are repeated in three places to decide whether to use
hwrng.  Consolidate these into a helper.

Also this fixes a case that one of them was missing a check in the
cleanup path.

Fixes: 554b841d ("tpm: Disable RNG for all AMD fTPMs")
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 22883973
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment