mirror of
https://github.com/xcat2/xNBA.git
synced 2025-07-05 20:35:40 +00:00
@ -245,11 +245,12 @@ static int pcibus_probe ( struct root_device *rootdev ) {
|
||||
|
||||
/* Allocate struct pci_device */
|
||||
if ( ! pci )
|
||||
pci = zalloc ( sizeof ( *pci ) );
|
||||
pci = malloc ( sizeof ( *pci ) );
|
||||
if ( ! pci ) {
|
||||
rc = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
memset ( pci, 0, sizeof ( *pci ) );
|
||||
pci->bus = bus;
|
||||
pci->devfn = devfn;
|
||||
|
||||
|
Reference in New Issue
Block a user