Commit c10cb5fc authored by Christoph Paasch's avatar Christoph Paasch Committed by David S. Miller

Fix: sparse warning in inet_csk_prepare_forced_close

In e337e24d (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: default avatarChristoph Paasch <christoph.paasch@uclouvain.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d0d79c3f
...@@ -735,6 +735,7 @@ EXPORT_SYMBOL(inet_csk_destroy_sock); ...@@ -735,6 +735,7 @@ EXPORT_SYMBOL(inet_csk_destroy_sock);
* tcp/dccp_create_openreq_child(). * tcp/dccp_create_openreq_child().
*/ */
void inet_csk_prepare_forced_close(struct sock *sk) 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 */ /* sk_clone_lock locked the socket and set refcnt to 2 */
bh_unlock_sock(sk); bh_unlock_sock(sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment