From 14fdf477a7e3ff54f8e67fe506dd2677a36c56e4 Mon Sep 17 00:00:00 2001 From: Michal Ludvig Date: Tue, 30 May 2006 14:49:38 +1000 Subject: [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 Signed-off-by: Herbert Xu --- crypto/tcrypt.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crypto') diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 49e344f0080..7bf93c5decf 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; } /* -- cgit v1.2.3