From: Christoph Paasch Date: Thu, 7 Mar 2013 02:34:33 +0000 (+0000) Subject: Fix: sparse warning in inet_csk_prepare_forced_close X-Git-Tag: v3.9-rc3~36^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c10cb5fc0fc9fa605e01f715118bde5ba5a98616;p=profile%2Fcommon%2Fkernel-common.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index 7d1874b..786d97a 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -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);