Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78467
b: refs/heads/master
c: 5e41fb8
h: refs/heads/master
i:
  78465: 0f27c57
  78463: 41cb137
v: v3
  • Loading branch information
Matthias Kaehlcke authored and David S. Miller committed Jan 28, 2008
1 parent e9c3008 commit 8f54a34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 9055e051b8d4b266054fe511a65a9888d30fa64f
refs/heads/master: 5e41fb83216d370d158fe17675af82d12c6c72c9
10 changes: 5 additions & 5 deletions trunk/drivers/net/ppp_synctty.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
#include <linux/if_ppp.h>
#include <linux/ppp_channel.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/init.h>
#include <asm/uaccess.h>
#include <asm/semaphore.h>

#define PPP_VERSION "2.4.2"

Expand All @@ -70,7 +70,7 @@ struct syncppp {
struct tasklet_struct tsk;

atomic_t refcnt;
struct semaphore dead_sem;
struct completion dead_cmp;
struct ppp_channel chan; /* interface to generic ppp layer */
};

Expand Down Expand Up @@ -195,7 +195,7 @@ static struct syncppp *sp_get(struct tty_struct *tty)
static void sp_put(struct syncppp *ap)
{
if (atomic_dec_and_test(&ap->refcnt))
up(&ap->dead_sem);
complete(&ap->dead_cmp);
}

/*
Expand Down Expand Up @@ -225,7 +225,7 @@ ppp_sync_open(struct tty_struct *tty)
tasklet_init(&ap->tsk, ppp_sync_process, (unsigned long) ap);

atomic_set(&ap->refcnt, 1);
init_MUTEX_LOCKED(&ap->dead_sem);
init_completion(&ap->dead_cmp);

ap->chan.private = ap;
ap->chan.ops = &sync_ops;
Expand Down Expand Up @@ -273,7 +273,7 @@ ppp_sync_close(struct tty_struct *tty)
* by the time it returns.
*/
if (!atomic_dec_and_test(&ap->refcnt))
down(&ap->dead_sem);
wait_for_completion(&ap->dead_cmp);
tasklet_kill(&ap->tsk);

ppp_unregister_channel(&ap->chan);
Expand Down

0 comments on commit 8f54a34

Please sign in to comment.