]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4d7c7b92e33be9478206487aa6b1b3c8d39c923
tree513621a3f1c675d34c5ebf6ed8d2f27fa5b8c3c6
parentb3ba3fdacdfdae592db65529734a0c386817decd
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: 200b167d3fffd0 ("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