提交 14fdf477 编写于 作者: M Michal Ludvig 提交者: Herbert Xu

[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: NMichal Ludvig <michal@logix.cz>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 996e2523
...@@ -1113,7 +1113,14 @@ static int __init init(void) ...@@ -1113,7 +1113,14 @@ static int __init init(void)
kfree(xbuf); kfree(xbuf);
kfree(tvmem); 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;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册