Skip to content

Commit 965e9a2

Browse files
committed
pkcs7: Change a pr_warn() to pr_warn_once()
Only display the "PKCS7: Waived invalid module sig (has authattrs)" once. Suggested-by: Lenny Szubowicz <lszubowi@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com> Tested-by: Lenny Szubowicz <lszubowi@redhat.com> cc: Lukas Wunner <lukas@wunner.de> cc: Ignat Korchagin <ignat@cloudflare.com> cc: Jarkko Sakkinen <jarkko@kernel.org> cc: Stephan Mueller <smueller@chronox.de> cc: Eric Biggers <ebiggers@kernel.org> cc: Herbert Xu <herbert@gondor.apana.org.au> cc: keyrings@vger.kernel.org cc: linux-crypto@vger.kernel.org
1 parent 91db696 commit 965e9a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crypto/asymmetric_keys/pkcs7_verify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ int pkcs7_verify(struct pkcs7_message *pkcs7,
427427
if (pkcs7->have_authattrs) {
428428
#ifdef CONFIG_PKCS7_WAIVE_AUTHATTRS_REJECTION_FOR_MLDSA
429429
if (pkcs7->authattrs_rej_waivable) {
430-
pr_warn("Waived invalid module sig (has authattrs)\n");
430+
pr_warn_once("Waived invalid module sig (has authattrs)\n");
431431
break;
432432
}
433433
#endif

0 commit comments

Comments
 (0)