From 80fb03aca1ad8379d9e4b85c1cc94468b2140059 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 14 Apr 2007 16:09:14 +1000 Subject: [PATCH] --- yaml --- r: 53321 b: refs/heads/master c: e196d6259141eda47aeafd88514aae652bfbfc7f h: refs/heads/master i: 53319: 6ebfa4f915427c3fce89197c2ad1fc67d2fb8a02 v: v3 --- [refs] | 2 +- trunk/include/linux/crypto.h | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index b480771d303f..d06c0ade7845 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 124b53d020622ffa24e27406f2373d5a3debd0d3 +refs/heads/master: e196d6259141eda47aeafd88514aae652bfbfc7f diff --git a/trunk/include/linux/crypto.h b/trunk/include/linux/crypto.h index 0ec2467891db..0de7e2ace822 100644 --- a/trunk/include/linux/crypto.h +++ b/trunk/include/linux/crypto.h @@ -588,6 +588,12 @@ static inline int crypto_ablkcipher_reqsize(struct crypto_ablkcipher *tfm) return crypto_ablkcipher_crt(tfm)->reqsize; } +static inline void ablkcipher_request_set_tfm( + struct ablkcipher_request *req, struct crypto_ablkcipher *tfm) +{ + req->base.tfm = crypto_ablkcipher_tfm(tfm); +} + static inline struct ablkcipher_request *ablkcipher_request_cast( struct crypto_async_request *req) { @@ -603,7 +609,7 @@ static inline struct ablkcipher_request *ablkcipher_request_alloc( crypto_ablkcipher_reqsize(tfm), gfp); if (likely(req)) - req->base.tfm = crypto_ablkcipher_tfm(tfm); + ablkcipher_request_set_tfm(req, tfm); return req; }