mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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: e7f4dc3536 ("mdio: Move allocation of interrupts into core")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Tobias Klauser <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
44ef548f4f
commit
57a0f36754
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue