Re: [PATCH v3 net-next] net: kcm: Replace fput with sockfd_put

2021-01-05 Thread David Miller
From: Zheng Yongjun Date: Wed, 30 Dec 2020 17:18:09 +0800 > The function sockfd_lookup uses fget on the value that is stored in > the file field of the returned structure, so fput should ultimately be > applied to this value. This can be done directly, but it seems better > to use the specific m

[PATCH v3 net-next] net: kcm: Replace fput with sockfd_put

2020-12-30 Thread Zheng Yongjun
The function sockfd_lookup uses fget on the value that is stored in the file field of the returned structure, so fput should ultimately be applied to this value. This can be done directly, but it seems better to use the specific macro sockfd_put, which does the same thing. Perform a source code r