Skip to content

Commit

Permalink
[NETLINK]: Remove bogus BUG_ON
Browse files Browse the repository at this point in the history
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 <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed May 4, 2007
1 parent db3459d commit 9e71efc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e71efc

Please sign in to comment.