From: Stephen Rothwell Date: Mon, 11 May 2009 21:44:51 +0000 (+0000) Subject: net/ibmveth: fix panic in probe X-Git-Tag: firefly_0821_release~13604^2~498 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d44b5e07c6813e6d747f7f947f1da5f0abf14eb4;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- 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; irx_buff_pool[i].kobj;