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
|
@ -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 New Issue