* all 1s. In this case the domain has no read access, which should
* also look like the device is non-existent. */
*val = 0xFFFFFFFF;
- return 0;
+ return ret; /* KAF: error return seems to matter on my test machine. */
}
/* Fake out read requests for some registers. */
/* Skip bridges and other peculiarities for now. */
if ( dev->hdr_type != PCI_HEADER_TYPE_NORMAL )
continue;
-
pdev = kmalloc(sizeof(phys_dev_t), GFP_KERNEL);
pdev->dev = dev;
pdev->flags = ACC_WRITE;
}
else
{
- printk("Hiding PCI device %s from DOM0\n",
- dev->slot_name);
+ printk("Hiding PCI device %s from DOM0\n", dev->slot_name);
}
}
}