diff options
Diffstat (limited to 'fs/utimes.c')
-rw-r--r-- | fs/utimes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/utimes.c b/fs/utimes.c index dc28b7826259..6929e3e91d05 100644 --- a/fs/utimes.c +++ b/fs/utimes.c | |||
@@ -152,18 +152,18 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags | |||
152 | error = utimes_common(&file->f_path, times); | 152 | error = utimes_common(&file->f_path, times); |
153 | fput(file); | 153 | fput(file); |
154 | } else { | 154 | } else { |
155 | struct nameidata nd; | 155 | struct path path; |
156 | int lookup_flags = 0; | 156 | int lookup_flags = 0; |
157 | 157 | ||
158 | if (!(flags & AT_SYMLINK_NOFOLLOW)) | 158 | if (!(flags & AT_SYMLINK_NOFOLLOW)) |
159 | lookup_flags |= LOOKUP_FOLLOW; | 159 | lookup_flags |= LOOKUP_FOLLOW; |
160 | 160 | ||
161 | error = __user_walk_fd(dfd, filename, lookup_flags, &nd); | 161 | error = user_path_at(dfd, filename, lookup_flags, &path); |
162 | if (error) | 162 | if (error) |
163 | goto out; | 163 | goto out; |
164 | 164 | ||
165 | error = utimes_common(&nd.path, times); | 165 | error = utimes_common(&path, times); |
166 | path_put(&nd.path); | 166 | path_put(&path); |
167 | } | 167 | } |
168 | 168 | ||
169 | out: | 169 | out: |