Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
5bb2dc6d
Commit
5bb2dc6d
authored
21 years ago
by
Steve French
Committed by
Steve French
21 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix oops in cifs mkdir when server fails to return inode info after successful mkdir
parent
32995340
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
fs/cifs/CHANGES
fs/cifs/CHANGES
+4
-0
fs/cifs/inode.c
fs/cifs/inode.c
+2
-1
No files found.
fs/cifs/CHANGES
View file @
5bb2dc6d
Version 0.85
------------
Fix oops in mkdir when server fails to return inode info.
Version 0.84
------------
Finish support for Linux 2.5 open/create changes, which removes the
...
...
This diff is collapsed.
Click to expand it.
fs/cifs/inode.c
View file @
5bb2dc6d
...
...
@@ -404,7 +404,8 @@ cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
direntry
->
d_op
=
&
cifs_dentry_ops
;
d_instantiate
(
direntry
,
newinode
);
direntry
->
d_inode
->
i_nlink
=
2
;
if
(
direntry
->
d_inode
)
direntry
->
d_inode
->
i_nlink
=
2
;
if
(
cifs_sb
->
tcon
->
ses
->
capabilities
&
CAP_UNIX
)
CIFSSMBUnixSetPerms
(
xid
,
pTcon
,
full_path
,
mode
,
(
__u64
)
-
1
,
...
...
This diff is collapsed.
Click to expand it.
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