]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/binfmt_aout.c
file->f_op is never NULL...
[people/ms/linux.git] / fs / binfmt_aout.c
index 89dec7f789a44335c500e8a2d89fc3f13dac6c5e..faaa819f70faeb8b7f508a5ff0ea56e20a892c6d 100644 (file)
@@ -221,7 +221,7 @@ static int load_aout_binary(struct linux_binprm * bprm)
         * Requires a mmap handler. This prevents people from using a.out
         * as part of an exploit attack against /proc-related vulnerabilities.
         */
-       if (!bprm->file->f_op || !bprm->file->f_op->mmap)
+       if (!bprm->file->f_op->mmap)
                return -ENOEXEC;
 
        fd_offset = N_TXTOFF(ex);
@@ -374,7 +374,7 @@ static int load_aout_library(struct file *file)
         * Requires a mmap handler. This prevents people from using a.out
         * as part of an exploit attack against /proc-related vulnerabilities.
         */
-       if (!file->f_op || !file->f_op->mmap)
+       if (!file->f_op->mmap)
                goto out;
 
        if (N_FLAGS(ex))