Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sis190] Avoid NULL pointer dereference
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 22, 2017
1 parent 99e1207 commit 3870a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/net/sis190.c
Expand Up @@ -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 ==
Expand Down

0 comments on commit 3870a7b

Please sign in to comment.