diff options
author | Holger Lubitz | 2007-06-18 01:24:34 +0200 |
---|---|---|
committer | Holger Lubitz | 2007-07-06 20:19:06 +0200 |
commit | c7549bcebe015293616b24b42cc72a117024776d (patch) | |
tree | 1ce762c7aef2713ce6bbb1c351f461f39ba8f908 | |
parent | convert to zalloc (diff) | |
download | ipxe-c7549bcebe015293616b24b42cc72a117024776d.tar.gz ipxe-c7549bcebe015293616b24b42cc72a117024776d.tar.xz ipxe-c7549bcebe015293616b24b42cc72a117024776d.zip |
convert to zalloc
-rw-r--r-- | src/arch/i386/drivers/net/undirom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/i386/drivers/net/undirom.c b/src/arch/i386/drivers/net/undirom.c index e8119f2e..45bcf969 100644 --- 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 = malloc ( sizeof ( *undirom ) ); + undirom = zalloc ( 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; |