mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-18 22:14:16 +00:00 
			
		
		
		
	[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 <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									db3459d1a7
								
							
						
					
					
						commit
						9e71efcd6d
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -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); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Patrick McHardy
						Patrick McHardy