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
d667522f
Commit
d667522f
authored
Dec 08, 2008
by
Russell King
Committed by
Russell King
Dec 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] dma: ensure that the single entry sg is properly initialized
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
8c56afcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
arch/arm/kernel/dma.c
arch/arm/kernel/dma.c
+4
-0
No files found.
arch/arm/kernel/dma.c
View file @
d667522f
...
...
@@ -15,6 +15,7 @@
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/errno.h>
#include <linux/scatterlist.h>
#include <asm/dma.h>
...
...
@@ -37,6 +38,9 @@ int __init isa_dma_add(unsigned int chan, dma_t *dma)
{
if
(
!
dma
->
d_ops
)
return
-
EINVAL
;
sg_init_table
(
&
dma
->
buf
,
1
);
if
(
dma_chan
[
chan
])
return
-
EBUSY
;
dma_chan
[
chan
]
=
dma
;
...
...
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