mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 01:52:08 +03:00
@@ -106,11 +106,12 @@ static int eisabus_probe ( struct root_device *rootdev ) {
|
|||||||
for ( slot = EISA_MIN_SLOT ; slot <= EISA_MAX_SLOT ; slot++ ) {
|
for ( slot = EISA_MIN_SLOT ; slot <= EISA_MAX_SLOT ; slot++ ) {
|
||||||
/* Allocate struct eisa_device */
|
/* Allocate struct eisa_device */
|
||||||
if ( ! eisa )
|
if ( ! eisa )
|
||||||
eisa = zalloc ( sizeof ( *eisa ) );
|
eisa = malloc ( sizeof ( *eisa ) );
|
||||||
if ( ! eisa ) {
|
if ( ! eisa ) {
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
memset ( eisa, 0, sizeof ( *eisa ) );
|
||||||
eisa->slot = slot;
|
eisa->slot = slot;
|
||||||
eisa->ioaddr = EISA_SLOT_BASE ( eisa->slot );
|
eisa->ioaddr = EISA_SLOT_BASE ( eisa->slot );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user