[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1284507110.1742.56.camel@jaunty>
Date: Wed, 15 Sep 2010 09:31:50 +1000
From: Andrew Hendry <andrew.hendry@...il.com>
To: netdev@...r.kernel.org
Subject: [PATCH 3/4] X.25 remove bkl in accept
Accept already has socket locking.
Signed-off-by: Andrew Hendry <andrew.hendry@...il.com>
---
net/x25/af_x25.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index ab959d0..4ebde0d 100644
--- a/net/x25/af_x25.c
+++ b/net/x25/af_x25.c
@@ -867,7 +867,6 @@ static int x25_accept(struct socket *sock, struct socket *newsock, int flags)
struct sk_buff *skb;
int rc = -EINVAL;
- lock_kernel();
if (!sk || sk->sk_state != TCP_LISTEN)
goto out;
@@ -895,7 +894,6 @@ static int x25_accept(struct socket *sock, struct socket *newsock, int flags)
out2:
release_sock(sk);
out:
- unlock_kernel();
return rc;
}
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists