drm_mode_create_lease_ioctl(): fix open-coded filp_clone_open()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Jun 2018 15:17:54 +0000 (11:17 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Jul 2018 03:29:03 +0000 (23:29 -0400)
commitb4e7a7a88b5d060650094b8d3454bc521d669f6a
tree296ceffb3c79d53906b23a244f432cb6ad40472a
parent877f919e192a09e77962a13d7165783027dee5fd
drm_mode_create_lease_ioctl(): fix open-coded filp_clone_open()

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>
drivers/gpu/drm/drm_lease.c
fs/internal.h
include/linux/fs.h