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
nexedi
linux
Commits
396b282f
Commit
396b282f
authored
Dec 28, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release the mmap semaphore in the legacy 80386 "verify_area()"
if an error happens.
parent
d924c951
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
arch/i386/lib/usercopy.c
arch/i386/lib/usercopy.c
+3
-1
No files found.
arch/i386/lib/usercopy.c
View file @
396b282f
...
...
@@ -541,8 +541,10 @@ unsigned long __copy_to_user_ll(void __user *to, const void *from, unsigned long
goto
survive
;
}
if
(
retval
!=
1
)
if
(
retval
!=
1
)
{
up_read
(
&
current
->
mm
->
mmap_sem
);
break
;
}
maddr
=
kmap_atomic
(
pg
,
KM_USER0
);
memcpy
(
maddr
+
offset
,
from
,
len
);
...
...
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