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
3d87e5e7
Commit
3d87e5e7
authored
Jan 30, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 4.14 up to v4.14.15
parent
7e23c0f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
smb2pdu.c
sources/4.14/smb2pdu.c
+8
-8
No files found.
sources/4.14/smb2pdu.c
View file @
3d87e5e7
...
...
@@ -2678,17 +2678,16 @@ SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms,
cifs_small_buf_release
(
req
);
rsp
=
(
struct
smb2_read_rsp
*
)
rsp_iov
.
iov_base
;
shdr
=
get_sync_hdr
(
rsp
);
if
(
shdr
->
Status
==
STATUS_END_OF_FILE
)
{
free_rsp_buf
(
resp_buftype
,
rsp_iov
.
iov_base
);
return
0
;
}
if
(
rc
)
{
if
(
rc
!=
-
ENODATA
)
{
cifs_stats_fail_inc
(
io_parms
->
tcon
,
SMB2_READ_HE
);
cifs_dbg
(
VFS
,
"Send error in read = %d
\n
"
,
rc
);
}
else
{
}
free_rsp_buf
(
resp_buftype
,
rsp_iov
.
iov_base
);
return
rc
==
-
ENODATA
?
0
:
rc
;
}
*
nbytes
=
le32_to_cpu
(
rsp
->
DataLength
);
if
((
*
nbytes
>
CIFS_MAX_MSGSIZE
)
||
(
*
nbytes
>
io_parms
->
length
))
{
...
...
@@ -2697,7 +2696,8 @@ SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms,
rc
=
-
EIO
;
*
nbytes
=
0
;
}
}
shdr
=
get_sync_hdr
(
rsp
);
if
(
*
buf
)
{
memcpy
(
*
buf
,
(
char
*
)
shdr
+
rsp
->
DataOffset
,
*
nbytes
);
...
...
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