diff options
| author | Andrew Lunn <[email protected]> | 2017-12-07 01:05:57 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-12-07 13:53:05 -0500 |
| commit | 3126aeec5313565bfa19e2dd8fd7e3c3390514cb (patch) | |
| tree | 542764a7424158766550b4f7915f70aa955b8964 /fs/jbd2/commit.c | |
| parent | 3d5fdba1842bdd2eef29364c660558cb4cbb3fe0 (diff) | |
net: dsa: mv88e6xxx: Unregister MDIO bus on error path
The MDIO busses need to be unregistered before they are freed,
otherwise BUG() is called. Add a call to the unregister code if the
registration fails, since we can have multiple busses, of which some
may correctly register before one fails. This requires moving the code
around a little.
Fixes: a3c53be55c95 ("net: dsa: mv88e6xxx: Support multiple MDIO busses")
Signed-off-by: Andrew Lunn <[email protected]>
Reviewed-by: Vivien Didelot <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions