From 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 11 Dec 2023 02:46:07 +0000
Subject: [PATCH] add audio
---
kernel/arch/mips/crypto/crc32-mips.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/kernel/arch/mips/crypto/crc32-mips.c b/kernel/arch/mips/crypto/crc32-mips.c
index 7d1d242..faa88a6 100644
--- a/kernel/arch/mips/crypto/crc32-mips.c
+++ b/kernel/arch/mips/crypto/crc32-mips.c
@@ -177,10 +177,8 @@
{
struct chksum_ctx *mctx = crypto_shash_ctx(tfm);
- if (keylen != sizeof(mctx->key)) {
- crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
+ if (keylen != sizeof(mctx->key))
return -EINVAL;
- }
mctx->key = get_unaligned_le32(key);
return 0;
}
--
Gitblit v1.6.2