Explorar el Código

[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>
tags/v1.20.1
Valentine Barshak hace 13 años
padre
commit
edcca8e91b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/drivers/net/sky2.c

+ 1
- 1
src/drivers/net/sky2.c Ver fichero

@@ -2334,7 +2334,7 @@ static int sky2_probe(struct pci_device *pdev)
2334 2334
 			sky2_show_addr(dev1);
2335 2335
 	}
2336 2336
 
2337
-	pci_set_drvdata(pdev, dev);
2337
+	pci_set_drvdata(pdev, hw);
2338 2338
 
2339 2339
 	return 0;
2340 2340
 

Loading…
Cancelar
Guardar