diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-03-03 14:47:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-07 04:59:18 +0100 |
commit | 11f7f79b40ebfbac6a1bcdbc61d5d13d365e744b (patch) | |
tree | ce4fe2b884ce70ee6b1a2129ff6ea970deb95abe /drivers/net/ethernet/altera | |
parent | net/ethoc: do not free array priv->mdio->irq (diff) | |
download | linux-11f7f79b40ebfbac6a1bcdbc61d5d13d365e744b.tar.xz linux-11f7f79b40ebfbac6a1bcdbc61d5d13d365e744b.zip |
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: e7f4dc3536a400 ("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>
Diffstat (limited to 'drivers/net/ethernet/altera')
-rw-r--r-- | drivers/net/ethernet/altera/altera_tse_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c index 17472851674f..f749e4d389eb 100644 --- a/drivers/net/ethernet/altera/altera_tse_main.c +++ b/drivers/net/ethernet/altera/altera_tse_main.c @@ -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; } |