--- zzzz-none-000/linux-4.4.60/crypto/ablkcipher.c 2017-04-08 07:53:53.000000000 +0000 +++ maple-7510-730/linux-4.4.60/crypto/ablkcipher.c 2021-03-17 14:36:41.000000000 +0000 @@ -598,6 +598,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);