]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix incorrect memcpy source memory
authorMarek Vasut <marex@denx.de>
Wed, 25 May 2016 22:40:23 +0000 (00:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 May 2016 04:43:35 +0000 (21:43 -0700)
commit13614b7f2f574804d9b20be8a6ea56f6eedc1770
tree821e2ccfdf4d2a69636756486ec619002417233d
parent90d89cae35674e109bfc29c8067c428d126bccd6
net: stmmac: Fix incorrect memcpy source memory

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.

Fixes: 200b167d3fff ("mdio: Move allocation of interrupts into core")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c