diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-10-21 12:07:56 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-10-23 12:55:43 +0800 |
| commit | 275a9a3f9b6a2158bfb7826074b72d5bdfb2ac35 (patch) | |
| tree | 7b0fdae3a365d6a0376a36a19105f36db3e951ae /security/keys | |
| parent | e7066160f5b4187ad9869b712fa7a35d3d5be6b9 (diff) | |
KEYS: trusted: Pass argument by pointer in dump_options
Instead of passing pkey_info into dump_options by value, using a
pointer instead.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'security/keys')
| -rw-r--r-- | security/keys/trusted-keys/trusted_caam.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/security/keys/trusted-keys/trusted_caam.c b/security/keys/trusted-keys/trusted_caam.c index 090099d1b04d..601943ce0d60 100644 --- a/security/keys/trusted-keys/trusted_caam.c +++ b/security/keys/trusted-keys/trusted_caam.c @@ -29,12 +29,12 @@ static const match_table_t key_tokens = { }; #ifdef CAAM_DEBUG -static inline void dump_options(struct caam_pkey_info pkey_info) +static inline void dump_options(const struct caam_pkey_info *pkey_info) { - pr_info("key encryption algo %d\n", pkey_info.key_enc_algo); + pr_info("key encryption algo %d\n", pkey_info->key_enc_algo); } #else -static inline void dump_options(struct caam_pkey_info pkey_info) +static inline void dump_options(const struct caam_pkey_info *pkey_info) { } #endif @@ -108,7 +108,7 @@ static int trusted_caam_seal(struct trusted_key_payload *p, char *datablob) ret = get_pkey_options(datablob, &info.pkey_info); if (ret < 0) return 0; - dump_options(info.pkey_info); + dump_options(&info.pkey_info); } ret = caam_encap_blob(blobifier, &info); @@ -140,7 +140,7 @@ static int trusted_caam_unseal(struct trusted_key_payload *p, char *datablob) ret = get_pkey_options(datablob, &info.pkey_info); if (ret < 0) return 0; - dump_options(info.pkey_info); + dump_options(&info.pkey_info); p->key_len = p->blob_len + sizeof(struct caam_pkey_info); memcpy(p->key, &info.pkey_info, sizeof(struct caam_pkey_info)); |