summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSreenivasa Honnur <Sreenivasa.Honnur@neterion.com>2010-03-28 22:10:33 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-29 16:57:22 -0700
commit4c5f3b210f53e315e460d539655a8d14595c5d1a (patch)
treefc7526a84182b1f476cf790c121254d4f8c821f1 /drivers
parent47231f7fb49bed800dd806b4c32f881005d84de8 (diff)
downloadblackbird-op-linux-4c5f3b210f53e315e460d539655a8d14595c5d1a.tar.gz
blackbird-op-linux-4c5f3b210f53e315e460d539655a8d14595c5d1a.zip
vxge: Fixed "ethtool -d" prints.
- Fixed "ethtool -d" prints - reg_space pointer was getting over written, updating it correctly. Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com> Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/vxge/vxge-ethtool.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/vxge/vxge-ethtool.c b/drivers/net/vxge/vxge-ethtool.c
index c6736b972635..6faa39e9d7a6 100644
--- a/drivers/net/vxge/vxge-ethtool.c
+++ b/drivers/net/vxge/vxge-ethtool.c
@@ -108,7 +108,7 @@ static void vxge_ethtool_gregs(struct net_device *dev,
int index, offset;
enum vxge_hw_status status;
u64 reg;
- u8 *reg_space = (u8 *) space;
+ u64 *reg_space = (u64 *) space;
struct vxgedev *vdev = (struct vxgedev *)netdev_priv(dev);
struct __vxge_hw_device *hldev = (struct __vxge_hw_device *)
pci_get_drvdata(vdev->pdev);
@@ -128,8 +128,7 @@ static void vxge_ethtool_gregs(struct net_device *dev,
__func__, __LINE__);
return;
}
-
- memcpy((reg_space + offset), &reg, 8);
+ *reg_space++ = reg;
}
}
}
OpenPOWER on IntegriCloud