Commit ad7276e6 authored by Jeff Layton's avatar Jeff Layton Committed by james toy

We can't get to this point unless it's a valid pointer.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 98022231
...@@ -1818,7 +1818,7 @@ do_last: ...@@ -1818,7 +1818,7 @@ do_last:
path_to_nameidata(&path, &nd); path_to_nameidata(&path, &nd);
error = -EISDIR; 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; goto exit;
ok: ok:
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment