david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[sis190] Avoid NULL pointer dereference

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-22 16:12:56 +02:00
parent 99e1207a4d
commit 3870a7bde2
1 changed files with 1 additions and 1 deletions

View File

@ -965,8 +965,8 @@ static int sis190_get_mac_addr_from_apc(struct pci_device *pdev,
list_for_each_entry(d, &(pdev->dev.siblings), siblings) {
unsigned int i;
isa_bridge = container_of(d, struct pci_device, dev);
for(i = 0; i < sis190_isa_bridge_driver.id_count; i++) {
isa_bridge = container_of(d, struct pci_device, dev);
if(isa_bridge->vendor ==
sis190_isa_bridge_driver.ids[i].vendor
&& isa_bridge->device ==