Skip to content

Commit

Permalink
[CRYPTO] tcrypt: Return -EAGAIN from module_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Ludvig authored and herbertx committed Jun 26, 2006
1 parent 996e252 commit 14fdf47
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit 14fdf47

Please sign in to comment.