mirror of
https://github.com/opnsense/src.git
synced 2026-03-09 09:41:05 -04:00
Don't clear the unused SI_CHEAPCLONE flag in tap_create()/tuncreate().
Reviewed by: kib
This commit is contained in:
parent
d56b4cd4ac
commit
ab97ad0806
2 changed files with 0 additions and 4 deletions
|
|
@ -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…
Reference in a new issue