[ipxe-devel] [PATCH] [sky2] Fix invalid memory access
Valentine Barshak
gvaxon at gmail.com
Sat Jun 2 13:38:00 UTC 2012
Use hw pointer in PCI driver data as expected by the sky2_remove()
callback. This fixes iPXE crashes caused by invalid memory access.
Signed-off-by: Valentine Barshak <gvaxon at gmail.com>
---
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;
--
1.6.0.6
More information about the ipxe-devel
mailing list