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
a5e9cfa6
Commit
a5e9cfa6
authored
May 25, 2003
by
John Levon
Committed by
Linus Torvalds
May 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] OProfile: fix d_path() usage
d_path() can return -ENAMETOOLONG these days. Pass it upstream.
parent
aacb2a25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
fs/dcookies.c
fs/dcookies.c
+6
-0
No files found.
fs/dcookies.c
View file @
a5e9cfa6
...
...
@@ -175,6 +175,11 @@ asmlinkage long sys_lookup_dcookie(u64 cookie64, char * buf, size_t len)
/* FIXME: (deleted) ? */
path
=
d_path
(
dcs
->
dentry
,
dcs
->
vfsmnt
,
kbuf
,
PAGE_SIZE
);
if
(
IS_ERR
(
path
))
{
err
=
PTR_ERR
(
path
);
goto
out_free
;
}
err
=
-
ERANGE
;
pathlen
=
kbuf
+
PAGE_SIZE
-
path
;
...
...
@@ -184,6 +189,7 @@ asmlinkage long sys_lookup_dcookie(u64 cookie64, char * buf, size_t len)
err
=
-
EFAULT
;
}
out_free:
kfree
(
kbuf
);
out:
up
(
&
dcookie_sem
);
...
...
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