diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 2001-12-30 19:02:27 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 2001-12-30 19:02:27 +0000 |
| commit | 909b37a41475eaa2cb8ce54ab9dbbd88809b3c8d (patch) | |
| tree | 5a602337b9b80d3f3f2761d172012f240634f635 /sys/net | |
| parent | 477b78a0df83518a8dce2b902453e23e05b7a7bd (diff) | |
Notes
Diffstat (limited to 'sys/net')
| -rw-r--r-- | sys/net/if_spppsubr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 3bf22997509c5..d54cfb8259396 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1006,8 +1006,10 @@ sppp_attach(struct ifnet *ifp) sp->pp_phase = PHASE_DEAD; sp->pp_up = lcp.Up; sp->pp_down = lcp.Down; - mtx_init(&sp->pp_cpq.ifq_mtx, "sppp_cpq", MTX_DEF); - mtx_init(&sp->pp_fastq.ifq_mtx, "sppp_fastq", MTX_DEF); + if(!mtx_initialized(&sp->pp_cpq.ifq_mtx)) + mtx_init(&sp->pp_cpq.ifq_mtx, "sppp_cpq", MTX_DEF); + if(!mtx_initialized(&sp->pp_fastq.ifq_mtx)) + mtx_init(&sp->pp_fastq.ifq_mtx, "sppp_fastq", MTX_DEF); sp->pp_last_recv = sp->pp_last_sent = time_second; sp->enable_vj = 1; sp->pp_comp = malloc(sizeof(struct slcompress), M_TEMP, M_WAIT); |
