diff options
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/compat.c b/fs/compat.c index 681ed81e6be0..6aefb776dfeb 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -812,10 +812,8 @@ asmlinkage long compat_sys_mount(char __user * dev_name, char __user * dir_name, | |||
812 | } | 812 | } |
813 | } | 813 | } |
814 | 814 | ||
815 | lock_kernel(); | ||
816 | retval = do_mount((char*)dev_page, dir_page, (char*)type_page, | 815 | retval = do_mount((char*)dev_page, dir_page, (char*)type_page, |
817 | flags, (void*)data_page); | 816 | flags, (void*)data_page); |
818 | unlock_kernel(); | ||
819 | 817 | ||
820 | out4: | 818 | out4: |
821 | free_page(data_page); | 819 | free_page(data_page); |
@@ -1488,7 +1486,7 @@ int compat_do_execve(char * filename, | |||
1488 | if (!bprm) | 1486 | if (!bprm) |
1489 | goto out_files; | 1487 | goto out_files; |
1490 | 1488 | ||
1491 | retval = mutex_lock_interruptible(¤t->cred_exec_mutex); | 1489 | retval = mutex_lock_interruptible(¤t->cred_guard_mutex); |
1492 | if (retval < 0) | 1490 | if (retval < 0) |
1493 | goto out_free; | 1491 | goto out_free; |
1494 | current->in_execve = 1; | 1492 | current->in_execve = 1; |
@@ -1550,7 +1548,7 @@ int compat_do_execve(char * filename, | |||
1550 | /* execve succeeded */ | 1548 | /* execve succeeded */ |
1551 | current->fs->in_exec = 0; | 1549 | current->fs->in_exec = 0; |
1552 | current->in_execve = 0; | 1550 | current->in_execve = 0; |
1553 | mutex_unlock(¤t->cred_exec_mutex); | 1551 | mutex_unlock(¤t->cred_guard_mutex); |
1554 | acct_update_integrals(current); | 1552 | acct_update_integrals(current); |
1555 | free_bprm(bprm); | 1553 | free_bprm(bprm); |
1556 | if (displaced) | 1554 | if (displaced) |
@@ -1573,7 +1571,7 @@ out_unmark: | |||
1573 | 1571 | ||
1574 | out_unlock: | 1572 | out_unlock: |
1575 | current->in_execve = 0; | 1573 | current->in_execve = 0; |
1576 | mutex_unlock(¤t->cred_exec_mutex); | 1574 | mutex_unlock(¤t->cred_guard_mutex); |
1577 | 1575 | ||
1578 | out_free: | 1576 | out_free: |
1579 | free_bprm(bprm); | 1577 | free_bprm(bprm); |