* [patch 9/9] vfs: remove extraneous NULL d_inode check from do_filp_open
@ 2009-11-17 22:56 akpm
2009-12-02 10:09 ` Miklos Szeredi
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2009-11-17 22:56 UTC (permalink / raw)
To: viro; +Cc: linux-fsdevel, akpm, jlayton, hch
From: Jeff Layton <jlayton@redhat.com>
We can't get to this point unless it's a valid pointer.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/namei.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN fs/namei.c~vfs-remove-extraneous-null-d_inode-check-from-do_filp_open fs/namei.c
--- a/fs/namei.c~vfs-remove-extraneous-null-d_inode-check-from-do_filp_open
+++ a/fs/namei.c
@@ -1818,7 +1818,7 @@ do_last:
path_to_nameidata(&path, &nd);
error = -EISDIR;
- if (path.dentry->d_inode && S_ISDIR(path.dentry->d_inode->i_mode))
+ if (S_ISDIR(path.dentry->d_inode->i_mode))
goto exit;
ok:
/*
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 9/9] vfs: remove extraneous NULL d_inode check from do_filp_open
2009-11-17 22:56 [patch 9/9] vfs: remove extraneous NULL d_inode check from do_filp_open akpm
@ 2009-12-02 10:09 ` Miklos Szeredi
0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2009-12-02 10:09 UTC (permalink / raw)
To: akpm; +Cc: viro, linux-fsdevel, akpm, jlayton, hch
On Tue, 17 Nov 2009, akpm@linux-foundation.or wrote:
> From: Jeff Layton <jlayton@redhat.com>
>
> We can't get to this point unless it's a valid pointer.
>
> Signed-off-by: Jeff Layton <jlayton@redhat.com>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> Cc: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Miklos Szeredi <mszeredi@suse.cz>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-02 10:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-17 22:56 [patch 9/9] vfs: remove extraneous NULL d_inode check from do_filp_open akpm
2009-12-02 10:09 ` Miklos Szeredi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).