Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
9d319522
Commit
9d319522
authored
Jun 19, 2008
by
Jonathan Corbet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tun: fasync BKL pushdown
Signed-off-by:
Jonathan Corbet
<
corbet@lwn.net
>
parent
743115ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
drivers/net/tun.c
drivers/net/tun.c
+7
-4
No files found.
drivers/net/tun.c
View file @
9d319522
...
@@ -782,18 +782,21 @@ static int tun_chr_fasync(int fd, struct file *file, int on)
...
@@ -782,18 +782,21 @@ 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
);
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
)
if
((
ret
=
fasync_helper
(
fd
,
file
,
on
,
&
tun
->
fasync
))
<
0
)
return
re
t
;
goto
ou
t
;
if
(
on
)
{
if
(
on
)
{
ret
=
__f_setown
(
file
,
task_pid
(
current
),
PIDTYPE_PID
,
0
);
ret
=
__f_setown
(
file
,
task_pid
(
current
),
PIDTYPE_PID
,
0
);
if
(
ret
)
if
(
ret
)
return
re
t
;
goto
ou
t
;
tun
->
flags
|=
TUN_FASYNC
;
tun
->
flags
|=
TUN_FASYNC
;
}
else
}
else
tun
->
flags
&=
~
TUN_FASYNC
;
tun
->
flags
&=
~
TUN_FASYNC
;
ret
=
0
;
return
0
;
out:
unlock_kernel
();
return
ret
;
}
}
static
int
tun_chr_open
(
struct
inode
*
inode
,
struct
file
*
file
)
static
int
tun_chr_open
(
struct
inode
*
inode
,
struct
file
*
file
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment