Patch "net: stmmac: Fix incorrect memcpy source memory" has been added to the 4.6-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
net: stmmac: Fix incorrect memcpy source memory
to the 4.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-stmmac-fix-incorrect-memcpy-source-memory.patch
and it can be found in the queue-4.6 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Fri Jun 17 08:34:39 PDT 2016
From: Marek Vasut <[email protected]>
Date: Thu, 26 May 2016 00:40:23 +0200
Subject: net: stmmac: Fix incorrect memcpy source memory
From: Marek Vasut <[email protected]>
[ Upstream commit 643d60bf575daaba93c1ac0d0e1c4b1d4ded1f75 ]
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.
--- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +1 -1
@@ -209,7 +209,7 @@ int stmmac_mdio_register(struct net_devireturn -ENOMEM ;if (mdio_bus_data->irqs) -memcpy (new_bus->irq, mdio_bus_data,sizeof (new_bus->irq)); +memcpy (new_bus->irq, mdio_bus_data->irqs,sizeof (new_bus->irq));#ifdef CONFIG_OF if (priv->device->of_node)
Patches currently in stable-queue which might be from [email protected] are
queue-4.6/net-stmmac-fix-incorrect-memcpy-source-memory.patch