Skip to content

Commit

Permalink
[sky2] Fix invalid memory access
Browse files Browse the repository at this point in the history
Use hw pointer in PCI driver data as expected by sky2_remove().

Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
gitvb authored and mcb30 committed Jun 27, 2012
1 parent cbc54bf commit edcca8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/net/sky2.c
Expand Up @@ -2334,7 +2334,7 @@ static int sky2_probe(struct pci_device *pdev)
sky2_show_addr(dev1);
}

pci_set_drvdata(pdev, dev);
pci_set_drvdata(pdev, hw);

return 0;

Expand Down

0 comments on commit edcca8e

Please sign in to comment.