if (PCIIRQRoutingInfoLength != NULL) kfree(PCIIRQRoutingInfoLength ); 
kfree(PCIIRQRoutingInfoLength ); 
static int PCI_GetBusDevHelper(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot, u8 nobridge){	struct irq_routing_table *PCIIRQRoutingInfoLength;	long len;	long loop;	u32 work;	u8 tbus, tdevice, tslot;	PCIIRQRoutingInfoLength = pcibios_get_irq_routing_table();	if (!PCIIRQRoutingInfoLength)		return -1;	len = (PCIIRQRoutingInfoLength->size -	       sizeof(struct irq_routing_table)) / sizeof(struct irq_info);	// Make sure I got at least one entry	if (len == 0) {		if (PCIIRQRoutingInfoLength != NULL)			kfree(PCIIRQRoutingInfoLength );		return -1;	}	for (loop = 0; loop < len; ++loop) {		tbus = PCIIRQRoutingInfoLength->slots[loop].bus;		tdevice = PCIIRQRoutingInfoLength->slots[loop].devfn;		tslot = PCIIRQRoutingInfoLength->slots[loop].slot;		if (tslot == slot) {			*bus_num = tbus;			*dev_num = tdevice;			ctrl->pci_bus->number = tbus;			pci_bus_read_config_dword (ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work);			if (!nobridge || (work == 0xffffffff)) {				if (PCIIRQRoutingInfoLength != NULL)					kfree(PCIIRQRoutingInfoLength );				return 0;			}			dbg("bus_num %d devfn %d\n", *bus_num, *dev_num);			pci_bus_read_config_dword (ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work);			dbg("work >> 8 (%x) = BRIDGE (%x)\n", work >> 8, PCI_TO_PCI_BRIDGE_CLASS);			if ((work >> 8) == PCI_TO_PCI_BRIDGE_CLASS) {				pci_bus_read_config_byte (ctrl->pci_bus, *dev_num, PCI_SECONDARY_BUS, &tbus);				dbg("Scan bus for Non Bridge: bus %d\n", tbus);				if (PCI_ScanBusForNonBridge(ctrl, tbus, dev_num) == 0) {					*bus_num = tbus;					if (PCIIRQRoutingInfoLength != NULL)						kfree(PCIIRQRoutingInfoLength );					return 0;				}			} else {				if (PCIIRQRoutingInfoLength != NULL)					kfree(PCIIRQRoutingInfoLength );				return 0;			}		}	}	if (PCIIRQRoutingInfoLength != NULL)		kfree(PCIIRQRoutingInfoLength );	return -1;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6044ec8882c726e325017bd948aa0cd94ad33abc/cpqphp_pci.c/clean/drivers/pci/hotplug/cpqphp_pci.c