mirror of https://github.com/ipxe/ipxe.git
[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
parent
cbc54bf559
commit
edcca8e91b
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue