projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7385ba
)
tun: Use POLLERR not EBADF in tun_chr_poll
author
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 20 Jan 2009 10:59:05 +0000
(10:59 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 22 Jan 2009 00:00:44 +0000
(16:00 -0800)
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>
drivers/net/tun.c
patch
|
blob
|
history
diff --git
a/drivers/net/tun.c
b/drivers/net/tun.c
index 20ef14dc560319a0c36af299735a6779362b5ce0..8743de9d25727beced2d0012a69bc1d7acf3ad06 100644
(file)
--- 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)
unsigned int mask = POLLOUT | POLLWRNORM;
if (!tun)
- return
-EBADFD
;
+ return
POLLERR
;
DBG(KERN_INFO "%s: tun_chr_poll\n", tun->dev->name);