Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
18f71f27
Commit
18f71f27
authored
20 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in 405 ethernet driver; allocated data not cleared!
parent
78953f2f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/ppc4xx/405gp_enet.c
+2
-0
2 additions, 0 deletions
cpu/ppc4xx/405gp_enet.c
with
2 additions
and
0 deletions
cpu/ppc4xx/405gp_enet.c
+
2
−
0
View file @
18f71f27
...
...
@@ -944,6 +944,7 @@ int ppc_4xx_eth_initialize (bd_t * bis)
"Cannot allocate eth_device %d
\n
"
,
eth_num
);
return
(
-
1
);
}
memset
(
dev
,
0
,
sizeof
(
*
dev
));
/* Allocate our private use data */
hw
=
(
EMAC_405_HW_PST
)
malloc
(
sizeof
(
*
hw
));
if
(
hw
==
NULL
)
{
...
...
@@ -953,6 +954,7 @@ int ppc_4xx_eth_initialize (bd_t * bis)
free
(
dev
);
return
(
-
1
);
}
memset
(
hw
,
0
,
sizeof
(
*
hw
));
switch
(
eth_num
)
{
case
0
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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