Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
20ba5d73
Commit
20ba5d73
authored
Apr 21, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch signalfd4() to fget_light/fput_light
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
545ec2c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
fs/signalfd.c
fs/signalfd.c
+4
-3
No files found.
fs/signalfd.c
View file @
20ba5d73
...
...
@@ -269,12 +269,13 @@ SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask,
if
(
ufd
<
0
)
kfree
(
ctx
);
}
else
{
struct
file
*
file
=
fget
(
ufd
);
int
fput_needed
;
struct
file
*
file
=
fget_light
(
ufd
,
&
fput_needed
);
if
(
!
file
)
return
-
EBADF
;
ctx
=
file
->
private_data
;
if
(
file
->
f_op
!=
&
signalfd_fops
)
{
fput
(
file
);
fput
_light
(
file
,
fput_needed
);
return
-
EINVAL
;
}
spin_lock_irq
(
&
current
->
sighand
->
siglock
);
...
...
@@ -282,7 +283,7 @@ SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask,
spin_unlock_irq
(
&
current
->
sighand
->
siglock
);
wake_up
(
&
current
->
sighand
->
signalfd_wqh
);
fput
(
file
);
fput
_light
(
file
,
fput_needed
);
}
return
ufd
;
...
...
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