diff options
| author | Mario Limonciello <[email protected]> | 2023-08-08 04:12:29 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2023-08-09 17:05:15 +0000 |
| commit | cacc6e22932f373a91d7be55a9b992dc77f4c59b (patch) | |
| tree | 809cfcaf78a8c97414268a9d48b3fd28997d1e9d /net/tls/tls_main.c | |
| parent | mm: Fix access_remote_vm() regression on tagged addresses (diff) | |
| download | kernel-cacc6e22932f373a91d7be55a9b992dc77f4c59b.tar.gz kernel-cacc6e22932f373a91d7be55a9b992dc77f4c59b.zip | |
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/tls/tls_main.c')
0 files changed, 0 insertions, 0 deletions
