Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
82f87f34
Commit
82f87f34
authored
Aug 28, 2018
by
Manohar Vanga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: use correct buffer in test_dma()
parent
4f7cfb30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ft-core.c
kernel/ft-core.c
+3
-3
No files found.
kernel/ft-core.c
View file @
82f87f34
...
...
@@ -356,7 +356,7 @@ static int gn4124_dma_sg(struct fmctdc_dev *ft,
enum
gncore_dma_status
status
;
int
mapbytes
=
0
;
int
byteleft
=
size
;
int
ret
;
int
ret
=
0
;
int
n
=
(
size
/
PAGE_SIZE
)
+
(
size
%
PAGE_SIZE
?
1
:
0
);
int
i
;
void
*
bufp
;
...
...
@@ -452,7 +452,7 @@ out_sg_alloc:
out_dma_item:
kfree
(
item
);
return
ret
;
return
(
ret
<
0
?
ret
:
0
)
;
}
...
...
@@ -506,7 +506,7 @@ int test_dma(struct fmctdc_dev *ft, unsigned int buf_size, unsigned int use_sg)
goto
out_buf2
;
if
(
use_sg
)
ret
=
gn4124_dma_sg
(
ft
,
0
,
buf
1
,
buf_size
,
DMA_FROM_DEVICE
);
ret
=
gn4124_dma_sg
(
ft
,
0
,
buf
2
,
buf_size
,
DMA_FROM_DEVICE
);
else
gn4124_dma_read
(
ft
,
0
,
buf2
,
buf_size
);
...
...
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