diff options
Diffstat (limited to 'drivers/isdn/gigaset/isocdata.c')
-rw-r--r-- | drivers/isdn/gigaset/isocdata.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/isdn/gigaset/isocdata.c b/drivers/isdn/gigaset/isocdata.c index 2f1628734a38..45f017ed6e8c 100644 --- a/drivers/isdn/gigaset/isocdata.c +++ b/drivers/isdn/gigaset/isocdata.c | |||
@@ -990,13 +990,17 @@ void gigaset_isoc_input(struct inbuf_t *inbuf) | |||
990 | int gigaset_isoc_send_skb(struct bc_state *bcs, struct sk_buff *skb) | 990 | int gigaset_isoc_send_skb(struct bc_state *bcs, struct sk_buff *skb) |
991 | { | 991 | { |
992 | int len = skb->len; | 992 | int len = skb->len; |
993 | unsigned long flags; | ||
993 | 994 | ||
994 | skb_queue_tail(&bcs->squeue, skb); | 995 | skb_queue_tail(&bcs->squeue, skb); |
995 | gig_dbg(DEBUG_ISO, "%s: skb queued, qlen=%d", | 996 | gig_dbg(DEBUG_ISO, "%s: skb queued, qlen=%d", |
996 | __func__, skb_queue_len(&bcs->squeue)); | 997 | __func__, skb_queue_len(&bcs->squeue)); |
997 | 998 | ||
998 | /* tasklet submits URB if necessary */ | 999 | /* tasklet submits URB if necessary */ |
999 | tasklet_schedule(&bcs->hw.bas->sent_tasklet); | 1000 | spin_lock_irqsave(&bcs->cs->lock, flags); |
1001 | if (bcs->cs->connected) | ||
1002 | tasklet_schedule(&bcs->hw.bas->sent_tasklet); | ||
1003 | spin_unlock_irqrestore(&bcs->cs->lock, flags); | ||
1000 | 1004 | ||
1001 | return len; /* ok so far */ | 1005 | return len; /* ok so far */ |
1002 | } | 1006 | } |