--- zzzz-none-000/linux-4.4.271/crypto/ablkcipher.c 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/crypto/ablkcipher.c 2023-12-20 10:37:05.000000000 +0000 @@ -595,6 +595,11 @@ if (IS_ERR(inst)) goto put_tmpl; + /* + * copy flags from registered algorithm + */ + inst->alg.cra_flags |= (alg->cra_flags & CRYPTO_ALG_NOSUPP_SG); + err = crypto_register_instance(tmpl, inst); if (err) { tmpl->free(inst);