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
7cadd63d
Commit
7cadd63d
authored
20 years ago
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix memory allocation of rfc1002 sess init struct
parent
ac51bef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/cifs/connect.c
fs/cifs/connect.c
+1
-1
No files found.
fs/cifs/connect.c
View file @
7cadd63d
...
...
@@ -940,7 +940,7 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket)
sessinit is sent but no second negprot */
struct
rfc1002_session_packet
*
ses_init_buf
;
struct
smb_hdr
*
smb_buf
;
ses_init_buf
=
cifs_kcalloc
(
36
,
GFP_KERNEL
);
ses_init_buf
=
cifs_kcalloc
(
sizeof
(
struct
rfc1002_session_packet
)
,
GFP_KERNEL
);
if
(
ses_init_buf
)
{
ses_init_buf
->
trailer
.
session_req
.
called_len
=
32
;
rfc1002mangle
(
ses_init_buf
->
trailer
.
session_req
.
called_name
,
...
...
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