net/ethoc: do not free array priv->mdio->irq
authorColin Ian King <colin.king@canonical.com>
Thu, 3 Mar 2016 13:43:34 +0000 (13:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2016 03:58:51 +0000 (22:58 -0500)
commit57a0f3675489181c31636d204fa5c5daf5fa3c83
tree513621a3f1c675d34c5ebf6ed8d2f27fa5b8c3c6
parent44ef548f4f8bbc739070583f9844ff0cd8fcc6b4
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>
drivers/net/ethernet/ethoc.c