summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/pcnet32.c
diff options
context:
space:
mode:
authorAndrei Faur2010-07-07 14:43:41 +0200
committerMichael Brown2010-07-11 16:53:22 +0200
commitab144219901ebfb7893787c70d74a685d10cb0ba (patch)
tree0e7ba285ef4dec870f93a5fa9ffdab53f6bef2f8 /src/drivers/net/pcnet32.c
parent[tcp] Fix potential use-after-free when accessing timestamp option (diff)
downloadipxe-ab144219901ebfb7893787c70d74a685d10cb0ba.tar.gz
ipxe-ab144219901ebfb7893787c70d74a685d10cb0ba.tar.xz
ipxe-ab144219901ebfb7893787c70d74a685d10cb0ba.zip
[pcnet32] Fix pcnet32_wio_reset() bug
This bug caused .probe to fail because the NIC did not reset properly. Signed-off-by: Andrei Faur <da3drus@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/pcnet32.c')
-rw-r--r--src/drivers/net/pcnet32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/pcnet32.c b/src/drivers/net/pcnet32.c
index 48cc5f71..e957ad9b 100644
--- a/src/drivers/net/pcnet32.c
+++ b/src/drivers/net/pcnet32.c
@@ -74,7 +74,7 @@ static void pcnet32_wio_write_rap ( unsigned long addr , u16 val )
static void pcnet32_wio_reset ( unsigned long addr )
{
- inw ( addr + PCNET32_DWIO_RESET );
+ inw ( addr + PCNET32_WIO_RESET );
}
static int pcnet32_wio_check ( unsigned long addr )