hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/crypto/crc32-mips.c
....@@ -177,10 +177,8 @@
177177 {
178178 struct chksum_ctx *mctx = crypto_shash_ctx(tfm);
179179
180
- if (keylen != sizeof(mctx->key)) {
181
- crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
180
+ if (keylen != sizeof(mctx->key))
182181 return -EINVAL;
183
- }
184182 mctx->key = get_unaligned_le32(key);
185183 return 0;
186184 }