mirror of https://github.com/ipxe/ipxe.git
parent
a772dc4a2a
commit
50fe2159d5
|
@ -90,11 +90,12 @@ static int mcabus_probe ( struct root_device *rootdev ) {
|
||||||
for ( slot = 0 ; slot <= MCA_MAX_SLOT_NR ; slot++ ) {
|
for ( slot = 0 ; slot <= MCA_MAX_SLOT_NR ; slot++ ) {
|
||||||
/* Allocate struct mca_device */
|
/* Allocate struct mca_device */
|
||||||
if ( ! mca )
|
if ( ! mca )
|
||||||
mca = zalloc ( sizeof ( *mca ) );
|
mca = malloc ( sizeof ( *mca ) );
|
||||||
if ( ! mca ) {
|
if ( ! mca ) {
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
memset ( mca, 0, sizeof ( *mca ) );
|
||||||
mca->slot = slot;
|
mca->slot = slot;
|
||||||
|
|
||||||
/* Make sure motherboard setup is off */
|
/* Make sure motherboard setup is off */
|
||||||
|
|
Loading…
Reference in New Issue