Re: [PATCH] net: stmmac: Fix incorrect memcpy source memory

2016-05-25 Thread David Miller
From: Andrew Lunn Date: Thu, 26 May 2016 02:26:25 +0200 > On Thu, May 26, 2016 at 12:40:23AM +0200, Marek Vasut wrote: >> The memcpy() currently copies mdio_bus_data into new_bus->irq, which >> makes no sense, since the mdio_bus_data structure contains more than >> just irqs. The

Re: [PATCH] net: stmmac: Fix incorrect memcpy source memory

2016-05-25 Thread Andrew Lunn
On Thu, May 26, 2016 at 12:40:23AM +0200, Marek Vasut wrote: > The memcpy() currently copies mdio_bus_data into new_bus->irq, which > makes no sense, since the mdio_bus_data structure contains more than > just irqs. The code was likely supposed to copy mdio_bus_data->irqs > into the new_bus->irq

Re: [PATCH] net: stmmac: Fix incorrect memcpy source memory

2016-05-25 Thread David Miller
From: Marek Vasut Date: Thu, 26 May 2016 00:40:23 +0200 > The memcpy() currently copies mdio_bus_data into new_bus->irq, which > makes no sense, since the mdio_bus_data structure contains more than > just irqs. The code was likely supposed to copy mdio_bus_data->irqs > into the

[PATCH] net: stmmac: Fix incorrect memcpy source memory

2016-05-25 Thread Marek Vasut
The memcpy() currently copies mdio_bus_data into new_bus->irq, which makes no sense, since the mdio_bus_data structure contains more than just irqs. The code was likely supposed to copy mdio_bus_data->irqs into the new_bus->irq instead, so fix this. Signed-off-by: Marek Vasut Cc: