]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/exec_domain.c
sched debug: BKL usage statistics
[linux-2.6-omap-h63xx.git] / kernel / exec_domain.c
index 867d6dbeb5743d1e49e1906b990031b4bdd7ee56..3c2eaea66b1e16347bcd564b0c492b8f026dcf21 100644 (file)
@@ -7,7 +7,6 @@
  * 2001-05-06  Complete rewrite,  Christoph Hellwig (hch@infradead.org)
  */
 
-#include <linux/config.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/kmod.h>
@@ -140,6 +139,7 @@ __set_personality(u_long personality)
        ep = lookup_exec_domain(personality);
        if (ep == current_thread_info()->exec_domain) {
                current->personality = personality;
+               module_put(ep->module);
                return 0;
        }