aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 20ef14dc5603..8743de9d2572 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -382,7 +382,7 @@ static unsigned int tun_chr_poll(struct file *file, poll_table * wait)
382 unsigned int mask = POLLOUT | POLLWRNORM; 382 unsigned int mask = POLLOUT | POLLWRNORM;
383 383
384 if (!tun) 384 if (!tun)
385 return -EBADFD; 385 return POLLERR;
386 386
387 DBG(KERN_INFO "%s: tun_chr_poll\n", tun->dev->name); 387 DBG(KERN_INFO "%s: tun_chr_poll\n", tun->dev->name);
388 388