Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5bf68592
Commit
5bf68592
authored
Nov 08, 2010
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solo6x10: [P2M] Fix memory leak
Signed-off-by:
Ben Collins
<
bcollins@bluecherry.net
>
parent
0e4de059
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drivers/staging/solo6x10/solo6010-p2m.c
drivers/staging/solo6x10/solo6010-p2m.c
+4
-1
No files found.
drivers/staging/solo6x10/solo6010-p2m.c
View file @
5bf68592
...
@@ -51,13 +51,16 @@ int solo_p2m_dma_t(struct solo6010_dev *solo_dev, u8 id, int wr,
...
@@ -51,13 +51,16 @@ int solo_p2m_dma_t(struct solo6010_dev *solo_dev, u8 id, int wr,
dma_addr_t
dma_addr
,
u32
ext_addr
,
u32
size
)
dma_addr_t
dma_addr
,
u32
ext_addr
,
u32
size
)
{
{
struct
p2m_desc
*
desc
=
kzalloc
(
sizeof
(
*
desc
)
*
2
,
GFP_DMA
);
struct
p2m_desc
*
desc
=
kzalloc
(
sizeof
(
*
desc
)
*
2
,
GFP_DMA
);
int
ret
;
if
(
desc
==
NULL
)
if
(
desc
==
NULL
)
return
-
ENOMEM
;
return
-
ENOMEM
;
solo_p2m_push_desc
(
&
desc
[
1
],
wr
,
dma_addr
,
ext_addr
,
size
,
0
,
0
);
solo_p2m_push_desc
(
&
desc
[
1
],
wr
,
dma_addr
,
ext_addr
,
size
,
0
,
0
);
ret
=
solo_p2m_dma_desc
(
solo_dev
,
id
,
desc
,
2
);
kfree
(
desc
);
return
solo_p2m_dma_desc
(
solo_dev
,
id
,
desc
,
2
)
;
return
ret
;
}
}
void
solo_p2m_push_desc
(
struct
p2m_desc
*
desc
,
int
wr
,
dma_addr_t
dma_addr
,
void
solo_p2m_push_desc
(
struct
p2m_desc
*
desc
,
int
wr
,
dma_addr_t
dma_addr
,
...
...
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