summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2023-08-08 07:12:29 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2023-08-09 20:05:15 +0300
commitcacc6e22932f373a91d7be55a9b992dc77f4c59b (patch)
tree809cfcaf78a8c97414268a9d48b3fd28997d1e9d /tools
parent22883973244b1caaa26f9c6171a41ba843c8d4bd (diff)
downloadlinux-cacc6e22932f373a91d7be55a9b992dc77f4c59b.tar.xz
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