Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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
Simple PCIe FMC carrier SPEC
Commits
034de672
Commit
034de672
authored
Sep 20, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: fix kcalloc argument order
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
d851f7a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec-gn412x-dma.c
software/kernel/spec-gn412x-dma.c
+2
-2
No files found.
software/kernel/spec-gn412x-dma.c
View file @
034de672
...
@@ -442,8 +442,8 @@ static struct dma_async_tx_descriptor *gn412x_dma_prep_slave_sg(
...
@@ -442,8 +442,8 @@ static struct dma_async_tx_descriptor *gn412x_dma_prep_slave_sg(
gn412x_dma_tx
->
sg_len
=
sg_len
;
gn412x_dma_tx
->
sg_len
=
sg_len
;
/* Configure the hardware for this transfer */
/* Configure the hardware for this transfer */
gn412x_dma_tx
->
sgl_hw
=
kcalloc
(
sizeof
(
struct
gn412x_dma_tx_hw
*
)
,
gn412x_dma_tx
->
sgl_hw
=
kcalloc
(
gn412x_dma_tx
->
sg_len
,
gn412x_dma_tx
->
sg_len
,
sizeof
(
struct
gn412x_dma_tx_hw
*
)
,
GFP_KERNEL
);
GFP_KERNEL
);
if
(
!
gn412x_dma_tx
->
sgl_hw
)
if
(
!
gn412x_dma_tx
->
sgl_hw
)
goto
err_alloc_sglhw
;
goto
err_alloc_sglhw
;
...
...
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