diff options
author | Jon Mason <jon.mason@broadcom.com> | 2017-05-08 17:48:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-08 17:59:33 -0400 |
commit | 922c60e89d52730050c6ccca218bff40cc8bcd8e (patch) | |
tree | 4a2469dd56afb3ade09189c04c5e13b67d421a27 /include/soc/brcmstb | |
parent | 48f5bccc60675f8426a6159935e8636a1fd89f56 (diff) |
net: mdio-mux: bcm-iproc: call mdiobus_free() in error path
If an error is encountered in mdio_mux_init(), the error path will call
mdiobus_free(). Since mdiobus_register() has been called prior to
mdio_mux_init(), the bus->state will not be MDIOBUS_UNREGISTERED. This
causes a BUG_ON() in mdiobus_free(). To correct this issue, add an
error path for mdio_mux_init() which calls mdiobus_unregister() prior to
mdiobus_free().
Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Fixes: 98bc865a1ec8 ("net: mdio-mux: Add MDIO mux driver for iProc SoCs")
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/soc/brcmstb')
0 files changed, 0 insertions, 0 deletions