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
Kirill Smelkov
linux
Commits
00e188ef
Commit
00e188ef
authored
Mar 03, 2014
by
Al Viro
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sockfd_lookup_light(): switch to fdget^W^Waway from fget_light
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9c225f26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
net/socket.c
net/socket.c
+7
-6
No files found.
net/socket.c
View file @
00e188ef
...
@@ -450,16 +450,17 @@ EXPORT_SYMBOL(sockfd_lookup);
...
@@ -450,16 +450,17 @@ EXPORT_SYMBOL(sockfd_lookup);
static
struct
socket
*
sockfd_lookup_light
(
int
fd
,
int
*
err
,
int
*
fput_needed
)
static
struct
socket
*
sockfd_lookup_light
(
int
fd
,
int
*
err
,
int
*
fput_needed
)
{
{
struct
f
ile
*
file
;
struct
f
d
f
=
fdget
(
fd
)
;
struct
socket
*
sock
;
struct
socket
*
sock
;
*
err
=
-
EBADF
;
*
err
=
-
EBADF
;
file
=
fget_light
(
fd
,
fput_needed
);
if
(
f
.
file
)
{
if
(
file
)
{
sock
=
sock_from_file
(
f
.
file
,
err
);
sock
=
sock_from_file
(
file
,
err
);
if
(
likely
(
sock
))
{
if
(
sock
)
*
fput_needed
=
f
.
flags
;
return
sock
;
return
sock
;
fput_light
(
file
,
*
fput_needed
);
}
fdput
(
f
);
}
}
return
NULL
;
return
NULL
;
}
}
...
...
Kirill Smelkov
@kirr
mentioned in commit
a689c582
·
Oct 07, 2020
mentioned in commit
a689c582
mentioned in commit a689c582719e129e4d07d4906dde9fb02cf1c69e
Toggle commit list
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