summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-06-20 10:17:34 +0000
committerwdenk <wdenk>2005-06-20 10:17:34 +0000
commitb2532eff87c73b11212dd63403ee9ae18c56b53a (patch)
treea8d4e73a7415b25817cde313d33632acabd74b93 /cpu/ppc4xx
parenta87589da74b84031a3db4ddd2e835e1893a90f3b (diff)
downloadu-boot-imx-b2532eff87c73b11212dd63403ee9ae18c56b53a.zip
u-boot-imx-b2532eff87c73b11212dd63403ee9ae18c56b53a.tar.gz
u-boot-imx-b2532eff87c73b11212dd63403ee9ae18c56b53a.tar.bz2
* Patch by Travis Sawyer, 10 Jun 2005:
Initialize allocated dev and private hw structures after their respective allocation in 440gx_enet.c * Patch by Steven Scholz, 10 Jun 2005: Fix byteorder problems with second argument of "bootm" with standalone images;
Diffstat (limited to 'cpu/ppc4xx')
-rw-r--r--cpu/ppc4xx/440gx_enet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/ppc4xx/440gx_enet.c b/cpu/ppc4xx/440gx_enet.c
index d1f4b76..871f83b 100644
--- a/cpu/ppc4xx/440gx_enet.c
+++ b/cpu/ppc4xx/440gx_enet.c
@@ -1216,6 +1216,7 @@ int ppc_440x_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_440GX_HW_PST) malloc (sizeof (*hw));
@@ -1226,6 +1227,7 @@ int ppc_440x_eth_initialize (bd_t * bis)
free (dev);
return (-1);
}
+ memset(hw, 0, sizeof(*hw));
switch (eth_num) {
default: /* fall through */