commit | 72c2d53192004845cbc19cd8a30b3212a9288140 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Sep 22 16:27:52 2013 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu Oct 24 23:34:54 2013 -0400 |
tree | 31fcd924438f03d5aa09d13ffd813fb153da37c3 | |
parent | 22bd002ee76aa7d7a3393f39d977f6c106153c60 [diff] [blame] |
file->f_op is never NULL... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/coredump.c b/fs/coredump.c index 9bdeca1..42c3b84 100644 --- a/fs/coredump.c +++ b/fs/coredump.c
@@ -645,7 +645,7 @@ */ if (!uid_eq(inode->i_uid, current_fsuid())) goto close_fail; - if (!cprm.file->f_op || !cprm.file->f_op->write) + if (!cprm.file->f_op->write) goto close_fail; if (do_truncate(cprm.file->f_path.dentry, 0, 0, cprm.file)) goto close_fail;