diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-08-07 23:12:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-08-09 10:05:15 -0700 |
commit | cacc6e22932f373a91d7be55a9b992dc77f4c59b (patch) | |
tree | 809cfcaf78a8c97414268a9d48b3fd28997d1e9d /tools | |
parent | 22883973244b1caaa26f9c6171a41ba843c8d4bd (diff) |
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: 554b841d4703 ("tpm: Disable RNG for all AMD fTPMs")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions