Deleted Added
full compact
2c2
< /* $FreeBSD: head/sys/netinet/ip_gre.c 125226 2004-01-30 09:03:01Z sobomax $ */
---
> /* $FreeBSD: head/sys/netinet/ip_gre.c 127307 2004-03-22 16:04:43Z rwatson $ */
316a317,323
> *
> * XXXRW: Need some sort of drain/refcount mechanism so that the softc
> * reference remains valid after it's returned from gre_lookup(). Right
> * now, I'm thinking it should be reference-counted with a gre_dropref()
> * when the caller is done with the softc. This is complicated by how
> * to handle destroying the gre softc; probably using a gre_drain() in
> * in_gre.c during destroy.
325a333
> mtx_lock(&gre_mtx);
331c339,340
< ((sc->sc_if.if_flags & IFF_UP) != 0))
---
> ((sc->sc_if.if_flags & IFF_UP) != 0)) {
> mtx_unlock(&gre_mtx);
332a342
> }
333a344
> mtx_unlock(&gre_mtx);