summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorMichal Ludvig <michal@logix.cz>2006-05-30 14:49:38 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2006-06-26 17:34:41 +1000
commit000ad1080934adfbb2bdf9a001bad6e517c4dad4 (patch)
tree3c88508760c7259eac85d47c91b2d33fe3b0eef0 /crypto/tcrypt.c
parent7b5264b62cfe67561b6936aeabe4e48cb649a17c (diff)
downloadlinux-crypto-000ad1080934adfbb2bdf9a001bad6e517c4dad4.tar.gz
linux-crypto-000ad1080934adfbb2bdf9a001bad6e517c4dad4.zip
[CRYPTO] tcrypt: Return -EAGAIN from module_init()
Intentionaly return -EAGAIN from module_init() to ensure it doesn't stay loaded in the kernel. The module does all its work from init() and doesn't offer any runtime functionality => we don't need it in the memory, do we? Signed-off-by: Michal Ludvig <michal@logix.cz> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 49e344f0..7bf93c5d 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1113,7 +1113,14 @@ static int __init init(void)
kfree(xbuf);
kfree(tvmem);
- return 0;
+
+ /* We intentionaly return -EAGAIN to prevent keeping
+ * the module. It does all its work from init()
+ * and doesn't offer any runtime functionality
+ * => we don't need it in the memory, do we?
+ * -- mludvig
+ */
+ return -EAGAIN;
}
/*