net: eth: altera: do not free array priv->mdio->irq
authorColin Ian King <colin.king@canonical.com>
Thu, 3 Mar 2016 13:47:18 +0000 (13:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2016 03:59:18 +0000 (22:59 -0500)
commit11f7f79b40ebfbac6a1bcdbc61d5d13d365e744b
treece4fe2b884ce70ee6b1a2129ff6ea970deb95abe
parent57a0f3675489181c31636d204fa5c5daf5fa3c83
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>
drivers/net/ethernet/altera/altera_tse_main.c