aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-01-20 05:59:05 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 19:00:44 -0500
commiteac9e902658dab1e097b8ef064e9e3d16c152cc9 (patch)
treea4e9d99cd65a41be06e2740b2d86fdc67bb7bc7d /drivers/net/tun.c
parenta7385ba21102a90f902055f9f185ca02bf62fa43 (diff)
tun: Use POLLERR not EBADF in tun_chr_poll
EBADF is meaningless in the context of a poll mask so use POLLERR instead. Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
-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