Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
4da1a841
Commit
4da1a841
authored
Jun 21, 2015
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 3.12 sources from stable (v3.12.44)
parent
2fd414fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
file.c
sources/3.12/file.c
+1
-0
smb2pdu.c
sources/3.12/smb2pdu.c
+16
-3
No files found.
sources/3.12/file.c
View file @
4da1a841
...
...
@@ -1829,6 +1829,7 @@ refind_writable:
cifsFileInfo_put
(
inv_file
);
spin_lock
(
&
cifs_file_list_lock
);
++
refind
;
inv_file
=
NULL
;
goto
refind_writable
;
}
}
...
...
sources/3.12/smb2pdu.c
View file @
4da1a841
...
...
@@ -1228,6 +1228,7 @@ SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
cifs_dbg
(
FYI
,
"SMB2 IOCTL
\n
"
);
*
out_data
=
NULL
;
/* zero out returned data len, in case of error */
if
(
plen
)
*
plen
=
0
;
...
...
@@ -1273,11 +1274,23 @@ SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid,
req
->
Flags
=
0
;
iov
[
0
].
iov_base
=
(
char
*
)
req
;
/* 4 for rfc1002 length field */
/*
* If no input data, the size of ioctl struct in
* protocol spec still includes a 1 byte data buffer,
* but if input data passed to ioctl, we do not
* want to double count this, so we do not send
* the dummy one byte of data in iovec[0] if sending
* input data (in iovec[1]). We also must add 4 bytes
* in first iovec to allow for rfc1002 length field.
*/
if
(
indatalen
)
{
iov
[
0
].
iov_len
=
get_rfc1002_length
(
req
)
+
4
-
1
;
inc_rfc1001_len
(
req
,
indatalen
-
1
);
}
else
iov
[
0
].
iov_len
=
get_rfc1002_length
(
req
)
+
4
;
if
(
indatalen
)
inc_rfc1001_len
(
req
,
indatalen
);
rc
=
SendReceive2
(
xid
,
ses
,
iov
,
num_iovecs
,
&
resp_buftype
,
0
);
rsp
=
(
struct
smb2_ioctl_rsp
*
)
iov
[
0
].
iov_base
;
...
...
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