diff options
author | Valentine Barshak <gvaxon@gmail.com> | 2012-06-02 17:38:00 +0400 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-06-27 15:44:35 +0100 |
commit | edcca8e91b047b891475dc8fd1d8c56a50ccae55 (patch) | |
tree | 3c2d807b5407d918fee8ed7a37c8cc1d7861a75c /src/drivers | |
parent | cbc54bf559ce257991a4c87001d7a5c41dbe1869 (diff) | |
download | ipxe-edcca8e91b047b891475dc8fd1d8c56a50ccae55.zip ipxe-edcca8e91b047b891475dc8fd1d8c56a50ccae55.tar.gz ipxe-edcca8e91b047b891475dc8fd1d8c56a50ccae55.tar.bz2 |
[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>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/net/sky2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/sky2.c b/src/drivers/net/sky2.c index 5b5bd6b..d60ef11 100644 --- a/src/drivers/net/sky2.c +++ b/src/drivers/net/sky2.c @@ -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; |