Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155018
b: refs/heads/master
c: 3c8a9c6
h: refs/heads/master
v: v3
  • Loading branch information
Mariusz Kozlowski authored and David S. Miller committed Jul 6, 2009
1 parent de25dbd commit 7737e8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ded3f59f35a2642852b3e2a1c0fa8a97777e9af
refs/heads/master: 3c8a9c63d5fd738c261bd0ceece04d9c8357ca13
4 changes: 3 additions & 1 deletion trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,14 @@ static unsigned int tun_chr_poll(struct file *file, poll_table * wait)
{
struct tun_file *tfile = file->private_data;
struct tun_struct *tun = __tun_get(tfile);
struct sock *sk = tun->sk;
struct sock *sk;
unsigned int mask = 0;

if (!tun)
return POLLERR;

sk = tun->sk;

DBG(KERN_INFO "%s: tun_chr_poll\n", tun->dev->name);

poll_wait(file, &tun->socket.wait, wait);
Expand Down

0 comments on commit 7737e8a

Please sign in to comment.