diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-05-11 23:44:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-18 00:19:36 +0200 |
commit | d44b5e07c6813e6d747f7f947f1da5f0abf14eb4 (patch) | |
tree | b6f59f1e62b9c5d704d69bef96ad485ac1579d77 /drivers/net/ibmveth.c | |
parent | ixgbe: Add FCoE related statistics to 82599 (diff) | |
download | linux-d44b5e07c6813e6d747f7f947f1da5f0abf14eb4.tar.xz linux-d44b5e07c6813e6d747f7f947f1da5f0abf14eb4.zip |
net/ibmveth: fix panic in probe
netdev->dev_addr changed from being an array to being a pointer, so we
should not take its address for memcpy().
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ibmveth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index 53af71aceb8a..0995c438f286 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c @@ -1285,7 +1285,7 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_ netdev->features |= NETIF_F_LLTX; spin_lock_init(&adapter->stats_lock); - memcpy(&netdev->dev_addr, &adapter->mac_addr, netdev->addr_len); + memcpy(netdev->dev_addr, &adapter->mac_addr, netdev->addr_len); for(i = 0; i<IbmVethNumBufferPools; i++) { struct kobject *kobj = &adapter->rx_buff_pool[i].kobj; |