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
4da6e525
Commit
4da6e525
authored
Sep 01, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] fix recent cifs symlink change so as not call kfree on null path
Signed-off-by: Steve French (sfrench@us.ibm.com)
parent
21366d93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/cifs/link.c
fs/cifs/link.c
+3
-3
No files found.
fs/cifs/link.c
View file @
4da6e525
...
...
@@ -106,7 +106,7 @@ cifs_follow_link(struct dentry *direntry, struct nameidata *nd)
up
(
&
direntry
->
d_sb
->
s_vfs_rename_sem
);
if
(
!
full_path
)
goto
out
;
goto
out
_no_free
;
cFYI
(
1
,
(
"Full path: %s inode = 0x%p"
,
full_path
,
inode
));
cifs_sb
=
CIFS_SB
(
inode
->
i_sb
);
...
...
@@ -126,9 +126,8 @@ cifs_follow_link(struct dentry *direntry, struct nameidata *nd)
else
{
/* rc = CIFSSMBQueryReparseLinkInfo */
/* BB Add code to Query ReparsePoint info */
/* BB Add MAC style xsymlink check here if enabled */
}
/* BB Anything else to do to handle recursive links? */
/* BB Should we be using page symlink ops here? */
if
(
rc
==
0
)
{
...
...
@@ -142,6 +141,7 @@ cifs_follow_link(struct dentry *direntry, struct nameidata *nd)
out:
kfree
(
full_path
);
out_no_free:
FreeXid
(
xid
);
nd_set_link
(
nd
,
target_path
);
return
0
;
...
...
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