Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - 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
Simple VME FMC Carrier SVEC - Software
Commits
107190c0
Commit
107190c0
authored
May 15, 2013
by
Juan David González Cobas
Committed by
Alessandro Rubini
May 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svec: bug: do not free here
parent
723da482
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
svec-fmc.c
kernel/svec-fmc.c
+6
-6
No files found.
kernel/svec-fmc.c
View file @
107190c0
...
...
@@ -212,6 +212,9 @@ int svec_fmc_prepare(struct svec_dev *svec, unsigned int fmc_slot)
svec
->
fmcs
[
fmc_slot
]
=
fmc
;
/* check golden integrity */
/* FIXME: this uses fmc_scan_sdb_tree and de-allocation
* could be wrong at second reprogramming, as it is called
* n times, one per slot */
ret
=
check_golden
(
fmc
);
if
(
ret
)
{
dev_err
(
svec
->
dev
,
"Bad golden, error %d
\n
"
,
ret
);
...
...
@@ -257,10 +260,7 @@ failed:
void
svec_fmc_destroy
(
struct
svec_dev
*
svec
)
{
if
(
svec
->
fmcs
)
{
fmc_device_unregister_n
(
svec
->
fmcs
,
svec
->
fmcs_n
);
kfree
(
svec
->
fmcs
);
dev_info
(
svec
->
dev
,
"%d fmc devices unregistered
\n
"
,
svec
->
fmcs_n
);
}
fmc_device_unregister_n
(
svec
->
fmcs
,
svec
->
fmcs_n
);
dev_info
(
svec
->
dev
,
"%d fmc devices unregistered
\n
"
,
svec
->
fmcs_n
);
}
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