Jeff Layton 6e9c2a05c3 fcntl: don't leak fd reference when fixup_compat_flock fails
[ Upstream commit 9280a601e6080c9ff658468c1c775ff6514099a6 ]

Currently we just return err here, but we need to put the fd reference
first.

Fixes: 94073ad77fff (fs/locks: don't mess with the address limit in compat_fcntl64)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-14 09:53:11 +01:00
..
2017-08-24 13:23:03 -07:00
2017-11-30 08:40:45 +00:00
2017-12-14 09:53:08 +01:00
2017-09-04 19:05:15 -04:00
2017-11-30 08:40:53 +00:00
2017-10-18 14:51:50 -04:00