commit | 520f0e37ba9ea2ca70135d99924652a106f85072 | [log] [tgz] |
---|---|---|
author | Miaohe Lin <linmiaohe@huawei.com> | Thu Aug 06 19:53:16 2020 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Aug 19 08:15:03 2020 +0200 |
tree | 078aef87508ba3820e268a39711663d4dc8d029c | |
parent | b200620cada4eaa63108be32e040ed557a1965fd [diff] |
net: Set fput_needed iff FDPUT_FPUT is set [ Upstream commit ce787a5a074a86f76f5d3fd804fa78e01bfb9e89 ] We should fput() file iff FDPUT_FPUT is set. So we should set fput_needed accordingly. Fixes: 00e188ef6a7e ("sockfd_lookup_light(): switch to fdget^W^Waway from fget_light") Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>