Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60797
b: refs/heads/master
c: 67837f2
h: refs/heads/master
i:
  60795: 1312730
v: v3
  • Loading branch information
Matthias Kaehlcke authored and Linus Torvalds committed Jul 17, 2007
1 parent cab1c8a commit 6a0b7a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 940408289842677cfe9e053a6c423bf3fb922560
refs/heads/master: 67837f232d6d55be99d6e0dec4ea9bb8112840cd
6 changes: 3 additions & 3 deletions trunk/drivers/isdn/capi/kcapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static void recv_handler(struct work_struct *work)
if ((!ap) || (ap->release_in_progress))
return;

down(&ap->recv_sem);
mutex_lock(&ap->recv_mtx);
while ((skb = skb_dequeue(&ap->recv_queue))) {
if (CAPIMSG_CMD(skb->data) == CAPI_DATA_B3_IND)
ap->nrecvdatapkt++;
Expand All @@ -267,7 +267,7 @@ static void recv_handler(struct work_struct *work)

ap->recv_message(ap, skb);
}
up(&ap->recv_sem);
mutex_unlock(&ap->recv_mtx);
}

void capi_ctr_handle_message(struct capi_ctr * card, u16 appl, struct sk_buff *skb)
Expand Down Expand Up @@ -547,7 +547,7 @@ u16 capi20_register(struct capi20_appl *ap)
ap->nsentctlpkt = 0;
ap->nsentdatapkt = 0;
ap->callback = NULL;
init_MUTEX(&ap->recv_sem);
mutex_init(&ap->recv_mtx);
skb_queue_head_init(&ap->recv_queue);
INIT_WORK(&ap->recv_work, recv_handler);
ap->release_in_progress = 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/kernelcapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct capi20_appl {
unsigned long nrecvdatapkt;
unsigned long nsentctlpkt;
unsigned long nsentdatapkt;
struct semaphore recv_sem;
struct mutex recv_mtx;
struct sk_buff_head recv_queue;
struct work_struct recv_work;
int release_in_progress;
Expand Down

0 comments on commit 6a0b7a3

Please sign in to comment.