On Mon, May 22, 2006 at 03:38:36PM +1200, Michal Ludvig wrote:
>
> +static void padlock_sha_init(struct crypto_tfm *tfm)
> +{
> + CTX(tfm)->used = 0;
> + CTX(tfm)->bypass = 0;
> + CTX(tfm)->data = (char*)__get_free_page(GFP_KERNEL);
> + if (!CTX(tfm)->data)
> + padlock_sha_bypass(tfm);
> + return;
> +}
Sorry, you can't do it here. The init/update functions must work within
atomic contexts. So please move the fallback/page allocation to the
cra_init function which I'm about to introduce.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html