diff options
author | brian <brian@FreeBSD.org> | 2001-06-18 09:21:59 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-06-18 09:21:59 +0000 |
commit | 6238970e0fc5194b7cd1d6622c5d40fa95c034f1 (patch) | |
tree | 2eb67faad81f8e6599e92bf23de33e6859a11390 /sys | |
parent | 90dc66d97b0ce3c09d459832a696fc4622d6b498 (diff) | |
download | FreeBSD-src-6238970e0fc5194b7cd1d6622c5d40fa95c034f1.zip FreeBSD-src-6238970e0fc5194b7cd1d6622c5d40fa95c034f1.tar.gz |
Remove the SI_CHEAPCLONE flag when hanging resources off the dev_t
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 0a0b9ce..0194995 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -275,6 +275,8 @@ tunopen(dev_t dev, int flag, int mode, struct proc *p) if (r == NULL) return (EBUSY); + dev->si_flags &= ~SI_CHEAPCLONE; + tp = dev->si_drv1; if (!tp) { tuncreate(dev); |