Commit eac9e902 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by David S. Miller

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: default avatarEric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a7385ba2
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment