Don't clear the unused SI_CHEAPCLONE flag in tap_create()/tuncreate().
Reviewed by: kib
This commit is contained in:
parent
ec6382d0c2
commit
5545e24af3
@ -409,8 +409,6 @@ tapcreate(struct cdev *dev)
|
||||
const char *name = NULL;
|
||||
u_char eaddr[6];
|
||||
|
||||
dev->si_flags &= ~SI_CHEAPCLONE;
|
||||
|
||||
/* allocate driver storage and create device */
|
||||
tp = malloc(sizeof(*tp), M_TAP, M_WAITOK | M_ZERO);
|
||||
mtx_init(&tp->tap_mtx, "tap_mtx", NULL, MTX_DEF);
|
||||
|
@ -361,8 +361,6 @@ tuncreate(const char *name, struct cdev *dev)
|
||||
struct tun_softc *sc;
|
||||
struct ifnet *ifp;
|
||||
|
||||
dev->si_flags &= ~SI_CHEAPCLONE;
|
||||
|
||||
sc = malloc(sizeof(*sc), M_TUN, M_WAITOK | M_ZERO);
|
||||
mtx_init(&sc->tun_mtx, "tun_mtx", NULL, MTX_DEF);
|
||||
cv_init(&sc->tun_cv, "tun_condvar");
|
||||
|
Loading…
x
Reference in New Issue
Block a user