diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 13:16:24 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-07-02 17:06:23 -0400 |
commit | fd3e05b6c82ebee06f888482975172028e89382d (patch) | |
tree | e76544e8cf04a629271c04074458ae9b04e86ca4 /drivers/net/tun.c | |
parent | db41bc9c4dfeed656dfd63d26883f81abc4005df (diff) |
net-tun: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 0ce07a339c7e..ce5af2aa8843 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <linux/kernel.h> | 48 | #include <linux/kernel.h> |
49 | #include <linux/major.h> | 49 | #include <linux/major.h> |
50 | #include <linux/slab.h> | 50 | #include <linux/slab.h> |
51 | #include <linux/smp_lock.h> | ||
51 | #include <linux/poll.h> | 52 | #include <linux/poll.h> |
52 | #include <linux/fcntl.h> | 53 | #include <linux/fcntl.h> |
53 | #include <linux/init.h> | 54 | #include <linux/init.h> |
@@ -797,6 +798,7 @@ static int tun_chr_fasync(int fd, struct file *file, int on) | |||
797 | 798 | ||
798 | static int tun_chr_open(struct inode *inode, struct file * file) | 799 | static int tun_chr_open(struct inode *inode, struct file * file) |
799 | { | 800 | { |
801 | cycle_kernel_lock(); | ||
800 | DBG1(KERN_INFO "tunX: tun_chr_open\n"); | 802 | DBG1(KERN_INFO "tunX: tun_chr_open\n"); |
801 | file->private_data = NULL; | 803 | file->private_data = NULL; |
802 | return 0; | 804 | return 0; |