mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00:00
parent
a4d3476e0e
commit
a772dc4a2a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user