mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
net: eth: altera: do not free array priv->mdio->irq
priv->mdio->irq used to be allocated and required freeing, but it
is now a fixed sized array and should no longer be free'd.
Issue detected using static analysis with CoverityScan
Fixes: e7f4dc3536
("mdio: Move allocation of interrupts into core")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
57a0f36754
commit
11f7f79b40
1 changed files with 0 additions and 1 deletions
|
@ -193,7 +193,6 @@ static void altera_tse_mdio_destroy(struct net_device *dev)
|
|||
priv->mdio->id);
|
||||
|
||||
mdiobus_unregister(priv->mdio);
|
||||
kfree(priv->mdio->irq);
|
||||
mdiobus_free(priv->mdio);
|
||||
priv->mdio = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue