diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1118,7 +1118,7 @@ int check_unsafe_exec(struct linux_binprm *bprm) | |||
1118 | bprm->unsafe = tracehook_unsafe_exec(p); | 1118 | bprm->unsafe = tracehook_unsafe_exec(p); |
1119 | 1119 | ||
1120 | n_fs = 1; | 1120 | n_fs = 1; |
1121 | write_lock(&p->fs->lock); | 1121 | spin_lock(&p->fs->lock); |
1122 | rcu_read_lock(); | 1122 | rcu_read_lock(); |
1123 | for (t = next_thread(p); t != p; t = next_thread(t)) { | 1123 | for (t = next_thread(p); t != p; t = next_thread(t)) { |
1124 | if (t->fs == p->fs) | 1124 | if (t->fs == p->fs) |
@@ -1135,7 +1135,7 @@ int check_unsafe_exec(struct linux_binprm *bprm) | |||
1135 | res = 1; | 1135 | res = 1; |
1136 | } | 1136 | } |
1137 | } | 1137 | } |
1138 | write_unlock(&p->fs->lock); | 1138 | spin_unlock(&p->fs->lock); |
1139 | 1139 | ||
1140 | return res; | 1140 | return res; |
1141 | } | 1141 | } |