Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);