diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-05-13 10:44:49 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-05-13 23:13:34 +0300 |
| commit | a93a0a15876d2a077a3bc260b387d2457a051f24 (patch) | |
| tree | 9af9e3d6c7ebb5f3b197cb1d6b4f39c32822404e /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 832ce924b1a14e139e184a6da9f5a69a5e47b256 (diff) | |
| download | linux-a93a0a15876d2a077a3bc260b387d2457a051f24.tar.xz | |
net: mdio: thunder: Fix a double free issue in the .remove function
'bus->mii_bus' have 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 remove function.
Fixes: 379d7ac7ca31 ("phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses.")
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 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
