From 7332a9399f0a3e8cd528f3035898db83fcfe15ef Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sat, 21 Apr 2012 18:47:57 -0400 Subject: [PATCH] --- yaml --- r: 309982 b: refs/heads/master c: c217a2a004d98d09dfceec3a023c563ed800e833 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/utimes.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 85a0adf375bf..922300c8cf28 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0aa2ee5f0a341a7fc081a499b221d29784ed711d +refs/heads/master: c217a2a004d98d09dfceec3a023c563ed800e833 diff --git a/trunk/fs/utimes.c b/trunk/fs/utimes.c index ba653f3dc1bc..fa4dbe451e27 100644 --- a/trunk/fs/utimes.c +++ b/trunk/fs/utimes.c @@ -140,18 +140,19 @@ long do_utimes(int dfd, const char __user *filename, struct timespec *times, goto out; if (filename == NULL && dfd != AT_FDCWD) { + int fput_needed; struct file *file; if (flags & AT_SYMLINK_NOFOLLOW) goto out; - file = fget(dfd); + file = fget_light(dfd, &fput_needed); error = -EBADF; if (!file) goto out; error = utimes_common(&file->f_path, times); - fput(file); + fput_light(file, fput_needed); } else { struct path path; int lookup_flags = 0;