[sky2] Fix invalid memory access

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>
This commit is contained in:
Valentine Barshak
2012-06-02 17:38:00 +04:00
committed by Michael Brown
parent cbc54bf559
commit edcca8e91b

View File

@@ -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;