diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-01-06 11:00:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-03 12:17:10 +0300 |
commit | eb8936ae670aef8d6efa447a82e4acc48f6a304b (patch) | |
tree | 332abcd109f35bcf8a45316fa70dede3e6716ff0 /arch/sh/boot | |
parent | 8094b1a3fa737e7f3515ae8b5286c65964d1a51f (diff) | |
download | linux-eb8936ae670aef8d6efa447a82e4acc48f6a304b.tar.xz |
mdio-sun4i: Fix a memory leak
[ Upstream commit 56c0290202ab94a2f2780c449395d4ae8495fab4 ]
If the probing of the regulator is deferred, the memory allocated by
'mdiobus_alloc_size()' will be leaking.
It should be freed before the next call to 'sun4i_mdio_probe()' which will
reallocate it.
Fixes: 4bdcb1dd9feb ("net: Add MDIO bus driver for the Allwinner EMAC")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sh/boot')
0 files changed, 0 insertions, 0 deletions