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
8765fc46
Commit
8765fc46
authored
Dec 11, 2004
by
Steve French
Committed by
Steve French
Dec 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] remove sparse warning
Signed-off-by: Steve French (sfrench@us.ibm.com)
parent
988aa94c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/cifs/file.c
fs/cifs/file.c
+3
-2
No files found.
fs/cifs/file.c
View file @
8765fc46
...
...
@@ -1009,7 +1009,7 @@ cifs_user_read(struct file * file, char __user *read_data, size_t read_size,
int
xid
;
struct
cifsFileInfo
*
open_file
;
char
*
smb_read_data
;
char
*
current_offset
;
char
__user
*
current_offset
;
struct
smb_com_read_rsp
*
pSMBr
;
xid
=
GetXid
();
...
...
@@ -1045,7 +1045,8 @@ cifs_user_read(struct file * file, char __user *read_data, size_t read_size,
&
bytes_read
,
&
smb_read_data
);
pSMBr
=
(
struct
smb_com_read_rsp
*
)
smb_read_data
;
copy_to_user
(
current_offset
,
smb_read_data
+
4
/* RFC1001 hdr */
+
le16_to_cpu
(
pSMBr
->
DataOffset
),
bytes_read
);
copy_to_user
(
current_offset
,
smb_read_data
+
4
/* RFC1001 hdr*/
+
le16_to_cpu
(
pSMBr
->
DataOffset
),
bytes_read
);
if
(
smb_read_data
)
{
cifs_buf_release
(
smb_read_data
);
smb_read_data
=
NULL
;
...
...
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