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
08775834
Commit
08775834
authored
May 30, 2006
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] Fix typos in previous fix
Signed-off-by:
Steve French
<
sfrench@us.ibm.com
>
parent
cec6815a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
fs/cifs/connect.c
fs/cifs/connect.c
+3
-3
fs/cifs/file.c
fs/cifs/file.c
+2
-2
No files found.
fs/cifs/connect.c
View file @
08775834
...
@@ -2490,7 +2490,7 @@ CIFSSpnegoSessSetup(unsigned int xid, struct cifsSesInfo *ses,
...
@@ -2490,7 +2490,7 @@ CIFSSpnegoSessSetup(unsigned int xid, struct cifsSesInfo *ses,
}
/* else no more room so create dummy domain string */
}
/* else no more room so create dummy domain string */
else
{
else
{
if
(
ses
->
serverDomain
)
if
(
ses
->
serverDomain
)
`
kfree
(
ses
->
serverDomain
);
kfree
(
ses
->
serverDomain
);
ses
->
serverDomain
=
ses
->
serverDomain
=
kzalloc
(
2
,
GFP_KERNEL
);
kzalloc
(
2
,
GFP_KERNEL
);
}
}
...
@@ -2528,7 +2528,7 @@ CIFSSpnegoSessSetup(unsigned int xid, struct cifsSesInfo *ses,
...
@@ -2528,7 +2528,7 @@ CIFSSpnegoSessSetup(unsigned int xid, struct cifsSesInfo *ses,
len
=
strnlen
(
bcc_ptr
,
1024
);
len
=
strnlen
(
bcc_ptr
,
1024
);
if
(
ses
->
serverDomain
)
if
(
ses
->
serverDomain
)
kfree
(
ses
->
severDomain
);
kfree
(
ses
->
se
r
verDomain
);
ses
->
serverDomain
=
kzalloc
(
len
+
1
,
GFP_KERNEL
);
ses
->
serverDomain
=
kzalloc
(
len
+
1
,
GFP_KERNEL
);
strncpy
(
ses
->
serverDomain
,
bcc_ptr
,
len
);
strncpy
(
ses
->
serverDomain
,
bcc_ptr
,
len
);
bcc_ptr
+=
len
;
bcc_ptr
+=
len
;
...
@@ -3174,7 +3174,7 @@ CIFSNTLMSSPAuthSessSetup(unsigned int xid, struct cifsSesInfo *ses,
...
@@ -3174,7 +3174,7 @@ CIFSNTLMSSPAuthSessSetup(unsigned int xid, struct cifsSesInfo *ses,
the end since (at least) WIN2K and Windows XP have a major bug in not null
the end since (at least) WIN2K and Windows XP have a major bug in not null
terminating last Unicode string in response */
terminating last Unicode string in response */
if
(
ses
->
serverOS
)
if
(
ses
->
serverOS
)
kfree
(
serverOS
);
kfree
(
se
s
->
se
rverOS
);
ses
->
serverOS
=
ses
->
serverOS
=
kzalloc
(
2
*
(
len
+
1
),
GFP_KERNEL
);
kzalloc
(
2
*
(
len
+
1
),
GFP_KERNEL
);
cifs_strfromUCS_le
(
ses
->
serverOS
,
cifs_strfromUCS_le
(
ses
->
serverOS
,
...
...
fs/cifs/file.c
View file @
08775834
...
@@ -905,8 +905,8 @@ static ssize_t cifs_write(struct file *file, const char *write_data,
...
@@ -905,8 +905,8 @@ static ssize_t cifs_write(struct file *file, const char *write_data,
break
;
break
;
}
}
if
(
experimEnabled
||
(
pTcon
->
ses
->
server
&&
if
(
experimEnabled
||
(
pTcon
->
ses
->
server
&&
(
pTcon
->
ses
->
server
->
secMode
&
(
(
pTcon
->
ses
->
server
->
secMode
&
(
SECMODE_SIGN_REQUIRED
|
SECMODE_SIGN_ENABLED
)
(
SECMODE_SIGN_REQUIRED
|
SECMODE_SIGN_ENABLED
)
)
==
0
)))
{
==
0
)))
{
struct
kvec
iov
[
2
];
struct
kvec
iov
[
2
];
unsigned
int
len
;
unsigned
int
len
;
...
...
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