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/readdir.c b/fs/readdir.c index 93d71e5..5b53d99 100644 --- a/fs/readdir.c +++ b/fs/readdir.c
@@ -24,7 +24,7 @@ { struct inode *inode = file_inode(file); int res = -ENOTDIR; - if (!file->f_op || !file->f_op->iterate) + if (!file->f_op->iterate) goto out; res = security_file_permission(file, MAY_READ);