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
d341659f
Commit
d341659f
authored
5 years ago
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xtensa: switch to providing csum_and_copy_from_user()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
76666be8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
arch/xtensa/include/asm/checksum.h
arch/xtensa/include/asm/checksum.h
+7
-4
No files found.
arch/xtensa/include/asm/checksum.h
View file @
d341659f
...
...
@@ -44,8 +44,6 @@ asmlinkage __wsum csum_partial_copy_generic(const void *src, void *dst,
/*
* Note: when you get a NULL pointer exception here this means someone
* passed in an incorrect kernel address to one of these functions.
*
* If you use these functions directly please don't forget the access_ok().
*/
static
inline
__wsum
csum_partial_copy_nocheck
(
const
void
*
src
,
void
*
dst
,
...
...
@@ -54,12 +52,17 @@ __wsum csum_partial_copy_nocheck(const void *src, void *dst,
return
csum_partial_copy_generic
(
src
,
dst
,
len
,
sum
,
NULL
,
NULL
);
}
#define _HAVE_ARCH_COPY_AND_CSUM_FROM_USER
static
inline
__wsum
csum_
partial
_copy_from_user
(
const
void
__user
*
src
,
void
*
dst
,
__wsum
csum_
and
_copy_from_user
(
const
void
__user
*
src
,
void
*
dst
,
int
len
,
__wsum
sum
,
int
*
err_ptr
)
{
if
(
access_ok
(
dst
,
len
))
return
csum_partial_copy_generic
((
__force
const
void
*
)
src
,
dst
,
len
,
sum
,
err_ptr
,
NULL
);
if
(
len
)
*
err_ptr
=
-
EFAULT
;
return
sum
;
}
/*
...
...
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