summaryrefslogtreecommitdiff
path: root/include/crypto/skcipher.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers3@gmail.com>2016-04-02 18:54:56 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2016-04-15 17:35:44 +0300
commit6eae29e7e7144d01a6d6af111d232b36cdd30f51 (patch)
treeef3e63a4a50b469476f0bdbd77942beca41aaa78 /include/crypto/skcipher.h
parent043809d8d25eac8307c8c7b74bca7266070cb007 (diff)
downloadlinux-6eae29e7e7144d01a6d6af111d232b36cdd30f51.tar.xz
crypto: doc - document correct return value for request allocation
Signed-off-by: Eric Biggers <ebiggers3@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/skcipher.h')
-rw-r--r--include/crypto/skcipher.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/crypto/skcipher.h b/include/crypto/skcipher.h
index 905490c1da89..0f987f50bb52 100644
--- a/include/crypto/skcipher.h
+++ b/include/crypto/skcipher.h
@@ -425,8 +425,7 @@ static inline struct skcipher_request *skcipher_request_cast(
* encrypt and decrypt API calls. During the allocation, the provided skcipher
* handle is registered in the request data structure.
*
- * Return: allocated request handle in case of success; IS_ERR() is true in case
- * of an error, PTR_ERR() returns the error code.
+ * Return: allocated request handle in case of success, or NULL if out of memory
*/
static inline struct skcipher_request *skcipher_request_alloc(
struct crypto_skcipher *tfm, gfp_t gfp)