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:
934b70d
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Sun, 17 Jun 2007 23:24:14 +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/undi.c
patch
|
blob
|
history
diff --git
a/src/arch/i386/drivers/net/undi.c
b/src/arch/i386/drivers/net/undi.c
index
648835c
..
1090cc9
100644
(file)
--- a/
src/arch/i386/drivers/net/undi.c
+++ b/
src/arch/i386/drivers/net/undi.c
@@
-72,10
+72,9
@@
static int undipci_probe ( struct pci_device *pci,
return -ENOTTY;
/* Allocate UNDI device structure */
return -ENOTTY;
/* Allocate UNDI device structure */
- undi =
m
alloc ( sizeof ( *undi ) );
+ undi =
z
alloc ( sizeof ( *undi ) );
if ( ! undi )
return -ENOMEM;
if ( ! undi )
return -ENOMEM;
- memset ( undi, 0, sizeof ( *undi ) );
pci_set_drvdata ( pci, undi );
/* Find/create our pixie */
pci_set_drvdata ( pci, undi );
/* Find/create our pixie */