[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>
pull/6/head^2
Valentine Barshak 2012-06-02 17:38:00 +04:00 committed by Michael Brown
parent cbc54bf559
commit edcca8e91b
1 changed files with 1 additions and 1 deletions

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;