http://git.etherboot.org
/
people
/
sha0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb61774
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Sun, 17 Jun 2007 23:24:34 +0000
(
01:24
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 18:19:06 +0000
(20:19 +0200)
src/arch/i386/drivers/net/undirom.c
patch
|
blob
|
history
diff --git
a/src/arch/i386/drivers/net/undirom.c
b/src/arch/i386/drivers/net/undirom.c
index
e8119f2
..
45bcf96
100644
(file)
--- a/
src/arch/i386/drivers/net/undirom.c
+++ b/
src/arch/i386/drivers/net/undirom.c
@@
-132,13
+132,12
@@
static int undirom_probe ( unsigned int rom_segment ) {
rom_len = ( romheader.ROMLength * 512 );
/* Allocate memory for UNDI ROM */
- undirom =
m
alloc ( sizeof ( *undirom ) );
+ undirom =
z
alloc ( sizeof ( *undirom ) );
if ( ! undirom ) {
DBG ( "Could not allocate UNDI ROM structure\n" );
rc = -ENOMEM;
goto err;
}
- memset ( undirom, 0, sizeof ( *undirom ) );
DBGC ( undirom, "UNDIROM %p trying expansion ROM at %04x:0000 "
"(%zdkB)\n", undirom, rom_segment, ( rom_len / 1024 ) );
undirom->rom_segment = rom_segment;