Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FMC Software Support
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
FMC Software Support
Commits
101eca15
Commit
101eca15
authored
2 years ago
by
Vaibhav Gupta
Browse files
Options
Downloads
Patches
Plain Diff
driver: fmc-eeprom: Fix memory leak
Signed-off-by:
Vaibhav Gupta
<
vaibhav.gupta@cern.ch
>
parent
86ae6b7d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/fmc/fmc-eeprom.c
+2
-1
2 additions, 1 deletion
drivers/fmc/fmc-eeprom.c
with
2 additions
and
1 deletion
drivers/fmc/fmc-eeprom.c
+
2
−
1
View file @
101eca15
...
...
@@ -189,12 +189,13 @@ static int __fmc_slot_eeprom_add(struct fmc_slot *slot,
"%s"
,
dev_name
(
&
slot
->
eeprom
->
dev
));
slot
->
nvmem
=
nvmem_device_find
(
nvmem_parent_name
,
fmc_nvmem_device_find_match
);
kfree
(
nvmem_parent_name
);
if
(
IS_ERR_OR_NULL
(
slot
->
nvmem
))
{
int
err
=
PTR_ERR
(
slot
->
nvmem
)
slot
->
nvmem
=
NULL
;
return
err
;
}
kfree
(
nvmem_parent_name
);
#endif
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment