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:
e3c72a3
)
Revert "convert to zalloc"
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 23:56:37 +0000
(
01:56
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 23:56:37 +0000
(
01:56
+0200)
This reverts commit
a4bea78974620820774a59f49646eafbdb481148
.
src/drivers/bus/eisa.c
patch
|
blob
|
history
diff --git
a/src/drivers/bus/eisa.c
b/src/drivers/bus/eisa.c
index
eed99ff
..
d9d02d7
100644
(file)
--- a/
src/drivers/bus/eisa.c
+++ b/
src/drivers/bus/eisa.c
@@
-106,11
+106,12
@@
static int eisabus_probe ( struct root_device *rootdev ) {
for ( slot = EISA_MIN_SLOT ; slot <= EISA_MAX_SLOT ; slot++ ) {
/* Allocate struct eisa_device */
if ( ! eisa )
- eisa =
z
alloc ( sizeof ( *eisa ) );
+ eisa =
m
alloc ( sizeof ( *eisa ) );
if ( ! eisa ) {
rc = -ENOMEM;
goto err;
}
+ memset ( eisa, 0, sizeof ( *eisa ) );
eisa->slot = slot;
eisa->ioaddr = EISA_SLOT_BASE ( eisa->slot );