VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: zhenwei pi <pizhenwei@bytedance.com> 2021-08-19 20:37:10 +0800 committer: Jarkko Sakkinen <jarkko@kernel.org> 2021-08-23 20:25:24 +0300 commit: f985911b7bc75d5c98ed24d8aaa8b94c590f7c6a parent: 047d4226b0bca1cda5267dc68bc8291cce5364ac
Commit Summary:
crypto: public_key: fix overflow during implicit conversion
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
index 47accec68cb0..f603325c0c30 100644
--- a/include/crypto/public_key.h
+++ b/include/crypto/public_key.h
@@ -38,9 +38,9 @@ extern void public_key_free(struct public_key *key);
 struct public_key_signature {
 	struct asymmetric_key_id *auth_ids[2];
 	u8 *s;			/* Signature */
-	u32 s_size;		/* Number of bytes in signature */
 	u8 *digest;
-	u8 digest_size;		/* Number of bytes in digest */
+	u32 s_size;		/* Number of bytes in signature */
+	u32 digest_size;	/* Number of bytes in digest */
 	const char *pkey_algo;
 	const char *hash_algo;
 	const char *encoding;