diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-03-03 13:43:34 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-06 22:58:51 -0500 |
commit | 57a0f3675489181c31636d204fa5c5daf5fa3c83 (patch) | |
tree | 513621a3f1c675d34c5ebf6ed8d2f27fa5b8c3c6 /drivers/net/ethernet/ethoc.c | |
parent | 44ef548f4f8bbc739070583f9844ff0cd8fcc6b4 (diff) | |
download | linux-57a0f3675489181c31636d204fa5c5daf5fa3c83.tar.bz2 |
net/ethoc: 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: Tobias Klauser <tklauser@distanz.ch>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ethoc.c')
-rw-r--r-- | drivers/net/ethernet/ethoc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c index 62fa136554ac..41b010645100 100644 --- a/drivers/net/ethernet/ethoc.c +++ b/drivers/net/ethernet/ethoc.c @@ -1265,7 +1265,6 @@ static int ethoc_remove(struct platform_device *pdev) if (priv->mdio) { mdiobus_unregister(priv->mdio); - kfree(priv->mdio->irq); mdiobus_free(priv->mdio); } if (priv->clk) |