Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170695
b: refs/heads/master
c: deed49f
h: refs/heads/master
i:
  170693: 4a70318
  170691: 48b732e
  170687: d898294
v: v3
  • Loading branch information
Thomas Gleixner authored and David S. Miller committed Oct 14, 2009
1 parent 006431d commit 27f3d42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 421355de876b9f3fcc7e4cb6026e416fb12a5068
refs/heads/master: deed49fbb68d7d07ec6c3dfd06bffc74e9abc6fa
5 changes: 1 addition & 4 deletions trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <linux/kernel.h>
#include <linux/major.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/poll.h>
#include <linux/fcntl.h>
#include <linux/init.h>
Expand Down Expand Up @@ -1285,7 +1284,6 @@ static int tun_chr_fasync(int fd, struct file *file, int on)

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

lock_kernel();
if ((ret = fasync_helper(fd, file, on, &tun->fasync)) < 0)
goto out;

Expand All @@ -1298,15 +1296,14 @@ static int tun_chr_fasync(int fd, struct file *file, int on)
tun->flags &= ~TUN_FASYNC;
ret = 0;
out:
unlock_kernel();
tun_put(tun);
return ret;
}

static int tun_chr_open(struct inode *inode, struct file * file)
{
struct tun_file *tfile;
cycle_kernel_lock();

DBG1(KERN_INFO "tunX: tun_chr_open\n");

tfile = kmalloc(sizeof(*tfile), GFP_KERNEL);
Expand Down

0 comments on commit 27f3d42

Please sign in to comment.