diff options
author | Andreas Rammhold <[email protected]> | 2021-12-01 10:59:00 +0100 |
---|---|---|
committer | Jarkko Sakkinen <[email protected]> | 2022-03-08 13:55:52 +0200 |
commit | 969a26446bcd142faedfe8c6f41cd7668596c1fa (patch) | |
tree | 0178a0270dd561f7cddc5b8c479f377a80f972df /net/lapb/lapb_subr.c | |
parent | 2dd634664d4128668c44bc9e497af24157f1eef4 (diff) |
KEYS: trusted: Fix trusted key backends when building as module
Before this commit the kernel could end up with no trusted key sources
even though both of the currently supported backends (TPM and TEE) were
compiled as modules. This manifested in the trusted key type not being
registered at all.
When checking if a CONFIG_… preprocessor variable is defined we only
test for the builtin (=y) case and not the module (=m) case. By using
the IS_REACHABLE() macro we do test for both cases.
Fixes: 5d0682be3189 ("KEYS: trusted: Add generic trusted keys framework")
Reviewed-by: Jarkko Sakkinen <[email protected]>
Reviewed-by: Ahmad Fatoum <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
Signed-off-by: Andreas Rammhold <[email protected]>
Tested-by: Ahmad Fatoum <[email protected]>
Signed-off-by: Ahmad Fatoum <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions