diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-06-08 11:17:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-25 11:26:13 +0200 |
commit | a242b5c4cd3a47b3e8fc8c317b86228d62093b51 (patch) | |
tree | bda9660098c5d11aa732f494a8cd6fde1ff67be9 /fs | |
parent | 3e354dd0a309f54e27507a1faf5995dd6c33ee1f (diff) | |
download | linux-stable-a242b5c4cd3a47b3e8fc8c317b86228d62093b51.tar.gz linux-stable-a242b5c4cd3a47b3e8fc8c317b86228d62093b51.tar.bz2 linux-stable-a242b5c4cd3a47b3e8fc8c317b86228d62093b51.zip |
drm_mode_create_lease_ioctl(): fix open-coded filp_clone_open()
commit b4e7a7a88b5d060650094b8d3454bc521d669f6a upstream.
Failure of ->open() should *not* be followed by fput(). Fixed by
using filp_clone_open(), which gets the cleanups right.
Cc: stable@vger.kernel.org
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/internal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/internal.h b/fs/internal.h index 980d005b21b4..5645b4ebf494 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -127,7 +127,6 @@ int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, extern int open_check_o_direct(struct file *f); extern int vfs_open(const struct path *, struct file *, const struct cred *); -extern struct file *filp_clone_open(struct file *); /* * inode.c |