summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio/cxgb4
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-05-13 10:24:55 +0300
committerDavid S. Miller <davem@davemloft.net>2021-05-14 01:43:52 +0300
commite1d027dd97e1e750669cdc0d3b016a4f54e473eb (patch)
tree8e6b4f3938f4e378120a4d4e7bd793a57ee6bea4 /drivers/net/ethernet/chelsio/cxgb4
parenta93a0a15876d2a077a3bc260b387d2457a051f24 (diff)
downloadlinux-e1d027dd97e1e750669cdc0d3b016a4f54e473eb.tar.xz
net: mdio: octeon: Fix some double free issues
'bus->mii_bus' has been allocated with 'devm_mdiobus_alloc_size()' in the probe function. So it must not be freed explicitly or there will be a double free. Remove the incorrect 'mdiobus_free' in the error handling path of the probe function and in remove function. Suggested-By: Andrew Lunn <andrew@lunn.ch> Fixes: 35d2aeac9810 ("phy: mdio-octeon: Use devm_mdiobus_alloc_size()") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4')
0 files changed, 0 insertions, 0 deletions