mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
Fix: sparse warning in inet_csk_prepare_forced_close
In e337e24d66
(inet: Fix kmemleak in tcp_v4/6_syn_recv_sock and
dccp_v4/6_request_recv_sock) I introduced the function
inet_csk_prepare_forced_close, which does a call to bh_unlock_sock().
This produces a sparse-warning.
This patch adds the missing __releases.
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d0d79c3fd7
commit
c10cb5fc0f
1 changed files with 1 additions and 0 deletions
|
@ -735,6 +735,7 @@ EXPORT_SYMBOL(inet_csk_destroy_sock);
|
|||
* tcp/dccp_create_openreq_child().
|
||||
*/
|
||||
void inet_csk_prepare_forced_close(struct sock *sk)
|
||||
__releases(&sk->sk_lock.slock)
|
||||
{
|
||||
/* sk_clone_lock locked the socket and set refcnt to 2 */
|
||||
bh_unlock_sock(sk);
|
||||
|
|
Loading…
Reference in a new issue