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
ef9f43d5
Commit
ef9f43d5
authored
Jan 09, 2005
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Ensure we do not remap pages outside the allocated range.
parent
530f890b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
arch/arm/mm/consistent.c
arch/arm/mm/consistent.c
+1
-1
No files found.
arch/arm/mm/consistent.c
View file @
ef9f43d5
...
@@ -286,7 +286,7 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma,
...
@@ -286,7 +286,7 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma,
if
(
c
)
{
if
(
c
)
{
kern_size
=
(
c
->
vm_end
-
c
->
vm_start
)
>>
PAGE_SHIFT
;
kern_size
=
(
c
->
vm_end
-
c
->
vm_start
)
>>
PAGE_SHIFT
;
if
(
vma
->
vm_pgoff
<
kern_size
||
if
(
vma
->
vm_pgoff
<
kern_size
&&
user_size
<=
(
kern_size
-
vma
->
vm_pgoff
))
{
user_size
<=
(
kern_size
-
vma
->
vm_pgoff
))
{
vma
->
vm_flags
|=
VM_RESERVED
;
vma
->
vm_flags
|=
VM_RESERVED
;
ret
=
remap_pfn_range
(
vma
,
vma
->
vm_start
,
ret
=
remap_pfn_range
(
vma
,
vma
->
vm_start
,
...
...
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