mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00:00
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++ ) {
|
||||
/* Allocate struct mca_device */
|
||||
if ( ! mca )
|
||||
mca = zalloc ( sizeof ( *mca ) );
|
||||
mca = malloc ( sizeof ( *mca ) );
|
||||
if ( ! mca ) {
|
||||
rc = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
memset ( mca, 0, sizeof ( *mca ) );
|
||||
mca->slot = slot;
|
||||
|
||||
/* Make sure motherboard setup is off */
|
||||
|
Loading…
Reference in New Issue
Block a user