--- zzzz-none-000/linux-4.4.60/crypto/ablkcipher.c 2017-04-08 07:53:53.000000000 +0000 +++ scorpion-7490-727/linux-4.4.60/crypto/ablkcipher.c 2021-02-04 17:41:59.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);