Bluetooth: Fix lockdep warning with skb list lock
This is a regression acctually, caused by the first patch series for creating a formal strcut l2cap_chan. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
		
					parent
					
						
							
								311bb895e3
							
						
					
				
			
			
				commit
				
					
						2ead70b839
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -236,6 +236,10 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err)
 | 
			
		|||
	} else
 | 
			
		||||
		sk->sk_state_change(sk);
 | 
			
		||||
 | 
			
		||||
	if (!(l2cap_pi(sk)->conf_state & L2CAP_CONF_OUTPUT_DONE &&
 | 
			
		||||
			l2cap_pi(sk)->conf_state & L2CAP_CONF_INPUT_DONE))
 | 
			
		||||
		goto free;
 | 
			
		||||
 | 
			
		||||
	skb_queue_purge(TX_QUEUE(sk));
 | 
			
		||||
 | 
			
		||||
	if (l2cap_pi(sk)->mode == L2CAP_MODE_ERTM) {
 | 
			
		||||
| 
						 | 
				
			
			@ -254,6 +258,7 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err)
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
free:
 | 
			
		||||
	kfree(chan);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue