提交 eac9e902 编写于 作者: E Eric W. Biederman 提交者: 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: NEric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册