diff options
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r-- | fs/binfmt_misc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index b0b70fbea06c..9be335fb8a7c 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -117,10 +117,6 @@ static int load_misc_binary(struct linux_binprm *bprm) | |||
117 | if (!enabled) | 117 | if (!enabled) |
118 | goto _ret; | 118 | goto _ret; |
119 | 119 | ||
120 | retval = -ENOEXEC; | ||
121 | if (bprm->recursion_depth > BINPRM_MAX_RECURSION) | ||
122 | goto _ret; | ||
123 | |||
124 | /* to keep locking time low, we copy the interpreter string */ | 120 | /* to keep locking time low, we copy the interpreter string */ |
125 | read_lock(&entries_lock); | 121 | read_lock(&entries_lock); |
126 | fmt = check_file(bprm); | 122 | fmt = check_file(bprm); |
@@ -197,8 +193,6 @@ static int load_misc_binary(struct linux_binprm *bprm) | |||
197 | if (retval < 0) | 193 | if (retval < 0) |
198 | goto _error; | 194 | goto _error; |
199 | 195 | ||
200 | bprm->recursion_depth++; | ||
201 | |||
202 | retval = search_binary_handler(bprm); | 196 | retval = search_binary_handler(bprm); |
203 | if (retval < 0) | 197 | if (retval < 0) |
204 | goto _error; | 198 | goto _error; |