mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
net-tun: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
db41bc9c4d
commit
fd3e05b6c8
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
|||
#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>
|
||||
|
@ -797,6 +798,7 @@ static int tun_chr_fasync(int fd, struct file *file, int on)
|
|||
|
||||
static int tun_chr_open(struct inode *inode, struct file * file)
|
||||
{
|
||||
cycle_kernel_lock();
|
||||
DBG1(KERN_INFO "tunX: tun_chr_open\n");
|
||||
file->private_data = NULL;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue