summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-02-24 04:35:44 +0000
committerbde <bde@FreeBSD.org>2004-02-24 04:35:44 +0000
commit244945ffaa54f4f9957f2e9d546d085ba49e3e21 (patch)
tree88baf00a8454019eb6b9d9542ca0b25bfaa059f8
parent809c93482d0ba7153cb605a6ca50b9350ed1b44e (diff)
downloadFreeBSD-src-244945ffaa54f4f9957f2e9d546d085ba49e3e21.zip
FreeBSD-src-244945ffaa54f4f9957f2e9d546d085ba49e3e21.tar.gz
Don't set d_flags twice. The second setting clobbered D_NOGIANT.
-rw-r--r--sys/dev/snp/snp.c3
-rw-r--r--sys/net/if_tap.c3
-rw-r--r--sys/net/if_tun.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index 6e4eb9a..19dc1e7 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -40,7 +40,7 @@ static d_poll_t snppoll;
static struct cdevsw snp_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_NEEDGIANT,
+ .d_flags = D_PSEUDO | D_NEEDGIANT,
.d_open = snpopen,
.d_close = snpclose,
.d_read = snpread,
@@ -48,7 +48,6 @@ static struct cdevsw snp_cdevsw = {
.d_ioctl = snpioctl,
.d_poll = snppoll,
.d_name = "snp",
- .d_flags = D_PSEUDO,
};
static struct linesw snpdisc = {
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index c7d380e..37d3e3e 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -98,7 +98,7 @@ static d_poll_t tappoll;
static struct cdevsw tap_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_NEEDGIANT,
+ .d_flags = D_PSEUDO | D_NEEDGIANT,
.d_open = tapopen,
.d_close = tapclose,
.d_read = tapread,
@@ -106,7 +106,6 @@ static struct cdevsw tap_cdevsw = {
.d_ioctl = tapioctl,
.d_poll = tappoll,
.d_name = CDEV_NAME,
- .d_flags = D_PSEUDO,
};
static int tapdebug = 0; /* debug flag */
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 3c297c6..222ce42 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -105,7 +105,7 @@ static d_poll_t tunpoll;
static struct cdevsw tun_cdevsw = {
.d_version = D_VERSION,
- .d_flags = D_NEEDGIANT,
+ .d_flags = D_PSEUDO | D_NEEDGIANT,
.d_open = tunopen,
.d_close = tunclose,
.d_read = tunread,
@@ -113,7 +113,6 @@ static struct cdevsw tun_cdevsw = {
.d_ioctl = tunioctl,
.d_poll = tunpoll,
.d_name = TUNNAME,
- .d_flags = D_PSEUDO,
};
static void
OpenPOWER on IntegriCloud