X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Futimes.c;h=6929e3e91d0579d28c6cd4453554a4c559236736;hb=49dd2c492895828a90ecdf889e7fe9cfb40a82a7;hp=dc28b7826259f92557f358341b1a7b275e90c666;hpb=f419a2e3b64def707e1384ee38abb77f99af5f6d;p=mv-sheeva.git diff --git a/fs/utimes.c b/fs/utimes.c index dc28b782625..6929e3e91d0 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 error = utimes_common(&file->f_path, times); fput(file); } else { - struct nameidata nd; + struct path path; int lookup_flags = 0; if (!(flags & AT_SYMLINK_NOFOLLOW)) lookup_flags |= LOOKUP_FOLLOW; - error = __user_walk_fd(dfd, filename, lookup_flags, &nd); + error = user_path_at(dfd, filename, lookup_flags, &path); if (error) goto out; - error = utimes_common(&nd.path, times); - path_put(&nd.path); + error = utimes_common(&path, times); + path_put(&path); } out: