1
0
Fork 0

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>
hifive-unleashed-5.1
Eric W. Biederman 2009-01-20 10:59:05 +00:00 committed by David S. Miller
parent a7385ba211
commit eac9e90265
1 changed files with 1 additions and 1 deletions

View File

@ -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);