crypto: ahash - Set using_shash for cloned ahash wrapper over shash
[linux-2.6-block.git] / crypto / ahash.c
index deee55f939dc8c0a12efd205007eb6693da17eb6..80c3e5354711e1fcaf2e7d487ac742bdc0e2cf77 100644 (file)
@@ -651,6 +651,7 @@ struct crypto_ahash *crypto_clone_ahash(struct crypto_ahash *hash)
                        err = PTR_ERR(shash);
                        goto out_free_nhash;
                }
+               nhash->using_shash = true;
                *nctx = shash;
                return nhash;
        }