mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 04:20:17 +03:00
[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:
committed by
Michael Brown
parent
cbc54bf559
commit
edcca8e91b
@@ -2334,7 +2334,7 @@ static int sky2_probe(struct pci_device *pdev)
|
|||||||
sky2_show_addr(dev1);
|
sky2_show_addr(dev1);
|
||||||
}
|
}
|
||||||
|
|
||||||
pci_set_drvdata(pdev, dev);
|
pci_set_drvdata(pdev, hw);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user