Skip to content
Snippets Groups Projects
Commit 18f71f27 authored by Stefan Roese's avatar Stefan Roese
Browse files

Fix bug in 405 ethernet driver; allocated data not cleared!

parent 78953f2f
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment