summaryrefslogtreecommitdiff
path: root/kernel/exec_domain.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2002-12-29 00:40:46 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-12-29 00:40:46 -0800
commitafe0458b256d78a37ba9f244cce29e141e1c658a (patch)
tree274954c06695edfd75cc761366ec38c413276dce /kernel/exec_domain.c
parent2cdea2157dfbe0ea2a28bf6d4dc6c53013e4088f (diff)
[PATCH] avoid deprecated module functions in core code
A second start at removing them from kernel/*.c and fs/*.c. Note that module_put is fine for a NULL argument.
Diffstat (limited to 'kernel/exec_domain.c')
-rw-r--r--kernel/exec_domain.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/exec_domain.c b/kernel/exec_domain.c
index e0b31f7f5243..162a5c23e606 100644
--- a/kernel/exec_domain.c
+++ b/kernel/exec_domain.c
@@ -172,7 +172,7 @@ __set_personality(u_long personality)
fsp = copy_fs_struct(current->fs);
if (fsp == NULL) {
- put_exec_domain(ep);
+ module_put(ep->module);
return -ENOMEM;;
}
@@ -194,10 +194,7 @@ __set_personality(u_long personality)
current_thread_info()->exec_domain = ep;
set_fs_altroot();
- put_exec_domain(oep);
-
- printk(KERN_DEBUG "[%s:%d]: set personality to %lx\n",
- current->comm, current->pid, personality);
+ module_put(oep->module);
return 0;
}