[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061130185316.GA32326@us.ibm.com>
Date: Thu, 30 Nov 2006 10:53:16 -0800
From: Don Fry <brazilnut@...ibm.com>
To: netdev@...r.kernel.org
Cc: amitkale@...xen.com, jeff@...zik.org, netxenproj@...syssoft.com,
rob@...xen.com, sanjeev@...xen.com, wendyx@...ibm.com
Subject: [PATCH 5/5] NetXen: Fix cast error
Fix for pointer casting error.
Signed-off-by: Don Fry <brazilnut@...ibm.com>
diff -Nupr netdev-2.6/drivers/net/netxen.four/netxen_nic_hw.c netdev-2.6/drivers/net/netxen/netxen_nic_hw.c
--- netdev-2.6/drivers/net/netxen.four/netxen_nic_hw.c 2006-11-30 10:06:24.000000000 -0800
+++ netdev-2.6/drivers/net/netxen/netxen_nic_hw.c 2006-11-30 10:31:00.000000000 -0800
@@ -867,7 +867,7 @@ void netxen_nic_set_link_parameters(stru
{
struct netxen_adapter *adapter = port->adapter;
__le32 status;
- u16 autoneg;
+ __le32 autoneg = 0;
__le32 mode;
netxen_nic_read_w0(adapter, NETXEN_NIU_MODE, &mode);
@@ -907,7 +907,7 @@ void netxen_nic_set_link_parameters(stru
&& adapter->
phy_read(adapter, port->portnum,
NETXEN_NIU_GB_MII_MGMT_ADDR_AUTONEG,
- (__le32 *) & autoneg) != 0)
+ &autoneg) != 0)
port->link_autoneg = autoneg;
} else
goto link_down;
--
Don Fry
brazilnut@...ibm.com
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists