diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-22 16:27:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-24 23:34:54 -0400 |
commit | 72c2d53192004845cbc19cd8a30b3212a9288140 (patch) | |
tree | 31fcd924438f03d5aa09d13ffd813fb153da37c3 /fs/binfmt_aout.c | |
parent | 22bd002ee76aa7d7a3393f39d977f6c106153c60 (diff) |
file->f_op is never NULL...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/binfmt_aout.c')
-rw-r--r-- | fs/binfmt_aout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c index 89dec7f789a4..faaa819f70fa 100644 --- a/fs/binfmt_aout.c +++ b/fs/binfmt_aout.c | |||
@@ -221,7 +221,7 @@ static int load_aout_binary(struct linux_binprm * bprm) | |||
221 | * Requires a mmap handler. This prevents people from using a.out | 221 | * Requires a mmap handler. This prevents people from using a.out |
222 | * as part of an exploit attack against /proc-related vulnerabilities. | 222 | * as part of an exploit attack against /proc-related vulnerabilities. |
223 | */ | 223 | */ |
224 | if (!bprm->file->f_op || !bprm->file->f_op->mmap) | 224 | if (!bprm->file->f_op->mmap) |
225 | return -ENOEXEC; | 225 | return -ENOEXEC; |
226 | 226 | ||
227 | fd_offset = N_TXTOFF(ex); | 227 | fd_offset = N_TXTOFF(ex); |
@@ -374,7 +374,7 @@ static int load_aout_library(struct file *file) | |||
374 | * Requires a mmap handler. This prevents people from using a.out | 374 | * Requires a mmap handler. This prevents people from using a.out |
375 | * as part of an exploit attack against /proc-related vulnerabilities. | 375 | * as part of an exploit attack against /proc-related vulnerabilities. |
376 | */ | 376 | */ |
377 | if (!file->f_op || !file->f_op->mmap) | 377 | if (!file->f_op->mmap) |
378 | goto out; | 378 | goto out; |
379 | 379 | ||
380 | if (N_FLAGS(ex)) | 380 | if (N_FLAGS(ex)) |