Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha
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 ADC 100M 14b 4cha
Commits
d42ceca9
Commit
d42ceca9
authored
Sep 08, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: fix handle error cond. on map failure
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
e35b71c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
fa-dma.c
kernel/fa-dma.c
+7
-0
No files found.
kernel/fa-dma.c
View file @
d42ceca9
...
@@ -453,6 +453,13 @@ err_prep:
...
@@ -453,6 +453,13 @@ err_prep:
err_config:
err_config:
dmaengine_terminate_all
(
dchan
);
dmaengine_terminate_all
(
dchan
);
dma_release_channel
(
dchan
);
dma_release_channel
(
dchan
);
while
(
--
i
>=
0
)
{
dma_unmap_sg
(
&
fa
->
pdev
->
dev
,
zfad_block
[
i
].
sgt
.
sgl
,
zfad_block
[
i
].
sgt
.
nents
,
DMA_DEV_TO_MEM
);
sg_free_table
(
&
zfad_block
[
i
].
sgt
);
}
err:
err:
fa_writel
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
ZFAT_CFG_SRC
],
fa_writel
(
fa
,
fa
->
fa_adc_csr_base
,
&
zfad_regs
[
ZFAT_CFG_SRC
],
cset
->
ti
->
zattr_set
.
ext_zattr
[
FA100M14B4C_TATTR_SRC
].
value
);
cset
->
ti
->
zattr_set
.
ext_zattr
[
FA100M14B4C_TATTR_SRC
].
value
);
...
...
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