Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
c7ea990f
Commit
c7ea990f
authored
Dec 15, 2007
by
Stefan Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieee1394: small cleanup after "nopage"
Signed-off-by:
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
parent
61db8121
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
drivers/ieee1394/dma.c
drivers/ieee1394/dma.c
+4
-12
No files found.
drivers/ieee1394/dma.c
View file @
c7ea990f
...
...
@@ -231,28 +231,20 @@ void dma_region_sync_for_device(struct dma_region *dma, unsigned long offset,
#ifdef CONFIG_MMU
/* fault() handler for mmap access */
static
int
dma_region_pagefault
(
struct
vm_area_struct
*
vma
,
struct
vm_fault
*
vmf
)
{
unsigned
long
kernel_virt_addr
;
struct
dma_region
*
dma
=
(
struct
dma_region
*
)
vma
->
vm_private_data
;
if
(
!
dma
->
kvirt
)
goto
error
;
return
VM_FAULT_SIGBUS
;
if
(
vmf
->
pgoff
>=
dma
->
n_pages
)
goto
error
;
return
VM_FAULT_SIGBUS
;
kernel_virt_addr
=
(
unsigned
long
)
dma
->
kvirt
+
(
vmf
->
pgoff
<<
PAGE_SHIFT
);
vmf
->
page
=
vmalloc_to_page
((
void
*
)
kernel_virt_addr
);
vmf
->
page
=
vmalloc_to_page
(
dma
->
kvirt
+
(
vmf
->
pgoff
<<
PAGE_SHIFT
));
get_page
(
vmf
->
page
);
return
0
;
error:
return
VM_FAULT_SIGBUS
;
}
static
struct
vm_operations_struct
dma_region_vm_ops
=
{
...
...
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