Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
6c2c97a2
Commit
6c2c97a2
authored
7 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
memdup_user(): switch to GFP_USER
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
105f2b70
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mm/util.c
+1
-6
1 addition, 6 deletions
mm/util.c
with
1 addition
and
6 deletions
mm/util.c
+
1
−
6
View file @
6c2c97a2
...
@@ -156,12 +156,7 @@ void *memdup_user(const void __user *src, size_t len)
...
@@ -156,12 +156,7 @@ void *memdup_user(const void __user *src, size_t len)
{
{
void
*
p
;
void
*
p
;
/*
p
=
kmalloc_track_caller
(
len
,
GFP_USER
);
* Always use GFP_KERNEL, since copy_from_user() can sleep and
* cause pagefault, which makes it pointless to use GFP_NOFS
* or GFP_ATOMIC.
*/
p
=
kmalloc_track_caller
(
len
,
GFP_KERNEL
);
if
(
!
p
)
if
(
!
p
)
return
ERR_PTR
(
-
ENOMEM
);
return
ERR_PTR
(
-
ENOMEM
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment