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
ecaa80fb
Commit
ecaa80fb
authored
Aug 26, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch hpux_getdents() to fget_light()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
7456a29b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/parisc/hpux/fs.c
arch/parisc/hpux/fs.c
+3
-3
No files found.
arch/parisc/hpux/fs.c
View file @
ecaa80fb
...
...
@@ -112,9 +112,9 @@ int hpux_getdents(unsigned int fd, struct hpux_dirent __user *dirent, unsigned i
struct
file
*
file
;
struct
hpux_dirent
__user
*
lastdirent
;
struct
getdents_callback
buf
;
int
error
=
-
EBADF
;
int
error
=
-
EBADF
,
fput_needed
;
file
=
fget
(
f
d
);
file
=
fget
_light
(
fd
,
&
fput_neede
d
);
if
(
!
file
)
goto
out
;
...
...
@@ -134,7 +134,7 @@ int hpux_getdents(unsigned int fd, struct hpux_dirent __user *dirent, unsigned i
error
=
count
-
buf
.
count
;
}
fput
(
file
);
fput
_light
(
file
,
fput_needed
);
out:
return
error
;
}
...
...
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