http://git.etherboot.org
/
people
/
indolent
/
gpxe.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4d3476
)
Revert "convert to zalloc"
author
Michael Brown
<mcb30@etherboot.org>
Sat, 7 Jul 2007 02:59:37 +0000
(
03:59
+0100)
committer
Michael Brown
<mcb30@etherboot.org>
Sat, 7 Jul 2007 02:59:37 +0000
(
03:59
+0100)
This reverts commit
68add6e814091f55e46afbef0b63f3d61f9549ba
.
src/drivers/net/3c509.c
patch
|
blob
|
history
diff --git
a/src/drivers/net/3c509.c
b/src/drivers/net/3c509.c
index
eae90b3
..
12cf774
100644
(file)
--- a/
src/drivers/net/3c509.c
+++ b/
src/drivers/net/3c509.c
@@
-347,11
+347,12
@@
static int t509bus_probe ( struct root_device *rootdev ) {
for ( tag = 1 ; tag <= t509_max_tag ; tag++ ) {
/* Allocate struct t509_device */
if ( ! t509 )
- t509 =
z
alloc ( sizeof ( *t509 ) );
+ t509 =
m
alloc ( sizeof ( *t509 ) );
if ( ! t509 ) {
rc = -ENOMEM;
goto err;
}
+ memset ( t509, 0, sizeof ( *t509 ) );
t509->tag = tag;
/* Send the ID sequence */