diff options
Diffstat (limited to 'drivers/bluetooth/hci_bcsp.c')
-rw-r--r-- | drivers/bluetooth/hci_bcsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c index d0cface535fb..5e2c31882003 100644 --- a/drivers/bluetooth/hci_bcsp.c +++ b/drivers/bluetooth/hci_bcsp.c | |||
@@ -330,7 +330,7 @@ static struct sk_buff *bcsp_dequeue(struct hci_uart *hu) | |||
330 | reliable packet if the number of packets sent but not yet ack'ed | 330 | reliable packet if the number of packets sent but not yet ack'ed |
331 | is < than the winsize */ | 331 | is < than the winsize */ |
332 | 332 | ||
333 | spin_lock_irqsave(&bcsp->unack.lock, flags); | 333 | spin_lock_irqsave_nested(&bcsp->unack.lock, flags, SINGLE_DEPTH_NESTING); |
334 | 334 | ||
335 | if (bcsp->unack.qlen < BCSP_TXWINSIZE && (skb = skb_dequeue(&bcsp->rel)) != NULL) { | 335 | if (bcsp->unack.qlen < BCSP_TXWINSIZE && (skb = skb_dequeue(&bcsp->rel)) != NULL) { |
336 | struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, skb->data, skb->len, bt_cb(skb)->pkt_type); | 336 | struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, skb->data, skb->len, bt_cb(skb)->pkt_type); |
@@ -696,7 +696,7 @@ static void bcsp_timed_event(unsigned long arg) | |||
696 | 696 | ||
697 | BT_DBG("hu %p retransmitting %u pkts", hu, bcsp->unack.qlen); | 697 | BT_DBG("hu %p retransmitting %u pkts", hu, bcsp->unack.qlen); |
698 | 698 | ||
699 | spin_lock_irqsave(&bcsp->unack.lock, flags); | 699 | spin_lock_irqsave_nested(&bcsp->unack.lock, flags, SINGLE_DEPTH_NESTING); |
700 | 700 | ||
701 | while ((skb = __skb_dequeue_tail(&bcsp->unack)) != NULL) { | 701 | while ((skb = __skb_dequeue_tail(&bcsp->unack)) != NULL) { |
702 | bcsp->msgq_txseq = (bcsp->msgq_txseq - 1) & 0x07; | 702 | bcsp->msgq_txseq = (bcsp->msgq_txseq - 1) & 0x07; |