From: Patrick McHardy Date: Fri, 4 May 2007 19:15:11 +0000 (-0700) Subject: [NETLINK]: Remove bogus BUG_ON X-Git-Tag: v2.6.22-rc1~1036^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e71efcd6d659afb9d390eea69b558a7432ba23e;p=linux-2.6 [NETLINK]: Remove bogus BUG_ON Remove bogus BUG_ON(mutex_is_locked(nlk_sk(sk)->cb_mutex)), when the netlink_kernel_create caller specifies an external mutex it might validly be locked. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index ac1ceadf4e..507828d7d4 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -142,7 +142,6 @@ static void netlink_sock_destruct(struct sock *sk) { struct netlink_sock *nlk = nlk_sk(sk); - BUG_ON(mutex_is_locked(nlk_sk(sk)->cb_mutex)); if (nlk->cb) { if (nlk->cb->done) nlk->cb->done(nlk->cb);