diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-03-03 14:27:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-07 04:56:48 +0100 |
commit | eb1f420214adf81fd98d9e8df6b60318ef883102 (patch) | |
tree | 2d21316ba6493505ce7ad2742fd2bb0a131f863b | |
parent | gianfar: Enable eTSEC-106 erratum w/a for MPC8548E Rev2 (diff) | |
download | linux-eb1f420214adf81fd98d9e8df6b60318ef883102.tar.xz linux-eb1f420214adf81fd98d9e8df6b60318ef883102.zip |
asix: do not free array priv->mdio->irq
Used to be allocated and required freeing, but now
priv->mdio->irq 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>
-rw-r--r-- | drivers/net/usb/ax88172a.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/usb/ax88172a.c b/drivers/net/usb/ax88172a.c index 224e7d82de6d..cf77f2dffa69 100644 --- a/drivers/net/usb/ax88172a.c +++ b/drivers/net/usb/ax88172a.c @@ -134,7 +134,6 @@ static void ax88172a_remove_mdio(struct usbnet *dev) netdev_info(dev->net, "deregistering mdio bus %s\n", priv->mdio->id); mdiobus_unregister(priv->mdio); - kfree(priv->mdio->irq); mdiobus_free(priv->mdio); } |