mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
6d45522c53
commit
d44b5e07c6
1 changed files with 1 additions and 1 deletions
|
@ -1285,7 +1285,7 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_
|
||||||
netdev->features |= NETIF_F_LLTX;
|
netdev->features |= NETIF_F_LLTX;
|
||||||
spin_lock_init(&adapter->stats_lock);
|
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++) {
|
for(i = 0; i<IbmVethNumBufferPools; i++) {
|
||||||
struct kobject *kobj = &adapter->rx_buff_pool[i].kobj;
|
struct kobject *kobj = &adapter->rx_buff_pool[i].kobj;
|
||||||
|
|
Loading…
Reference in a new issue