tun: Use POLLERR not EBADF in tun_chr_poll
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Jan 2009 10:59:05 +0000 (10:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 00:00:44 +0000 (16:00 -0800)
commiteac9e902658dab1e097b8ef064e9e3d16c152cc9
treea4e9d99cd65a41be06e2740b2d86fdc67bb7bc7d
parenta7385ba21102a90f902055f9f185ca02bf62fa43
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>
drivers/net/tun.c