Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
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
1
Merge Requests
1
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
ZIO
Commits
72e7fe42
Commit
72e7fe42
authored
Aug 22, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dma: check map_single return value properly
Signed-off-by:
federico.vaga@cern.ch
<
federico.vaga@cern.ch
>
parent
7d22c3d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dma.c
dma.c
+2
-1
No files found.
dma.c
View file @
72e7fe42
...
...
@@ -222,7 +222,8 @@ int zio_dma_map_sg(struct zio_dma_sgt *zdma, size_t page_desc_size,
zdma
->
dma_page_desc_pool
=
dma_map_single
(
zdma
->
hwdev
,
zdma
->
page_desc_pool
,
size
,
DMA_TO_DEVICE
);
if
(
!
zdma
->
dma_page_desc_pool
)
{
if
(
dma_mapping_error
(
zdma
->
hwdev
,
zdma
->
dma_page_desc_pool
))
{
dev_err
(
zdma
->
hwdev
,
"cannot map dma memory for descriptors
\n
"
);
err
=
-
ENOMEM
;
goto
out_map_single
;
}
...
...
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