Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e71efcd authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[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: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db3459d1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);