]> git.baikalelectronics.ru Git - kernel.git/commit
net: Set fput_needed iff FDPUT_FPUT is set
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 6 Aug 2020 11:53:16 +0000 (19:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Aug 2020 21:21:42 +0000 (14:21 -0700)
commite53c6b0201914519f135ee23e9cd61d0212485ce
tree1a05f6d3fe7007dc70a56e0ee3652d6c59de7af9
parent592b6999e330bdadaa8446e403a3aad490287b33
net: Set fput_needed iff FDPUT_FPUT is set

We should fput() file iff FDPUT_FPUT is set. So we should set fput_needed
accordingly.

Fixes: 03400a8b3187 ("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>
net/socket.c