[CRYPTO] tcrypt: Return -EAGAIN from module_init()
[powerpc.git] / crypto / tcrypt.c
index 49e344f..7bf93c5 100644 (file)
@@ -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;
 }
 
 /*