Revision 3126aeec5313565bfa19e2dd8fd7e3c3390514cb authored by Andrew Lunn on 07 December 2017, 00:05:57 UTC, committed by David S. Miller on 07 December 2017, 18:53:05 UTC
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 <andrew@lunn.ch> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3d5fdba
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 1.3 KB |
autogroup.c | -rw-r--r-- | 6.5 KB |
autogroup.h | -rw-r--r-- | 1.6 KB |
clock.c | -rw-r--r-- | 11.6 KB |
completion.c | -rw-r--r-- | 10.2 KB |
core.c | -rw-r--r-- | 170.6 KB |
cpuacct.c | -rw-r--r-- | 8.4 KB |
cpudeadline.c | -rw-r--r-- | 6.0 KB |
cpudeadline.h | -rw-r--r-- | 772 bytes |
cpufreq.c | -rw-r--r-- | 2.2 KB |
cpufreq_schedutil.c | -rw-r--r-- | 18.6 KB |
cpupri.c | -rw-r--r-- | 6.8 KB |
cpupri.h | -rw-r--r-- | 713 bytes |
cputime.c | -rw-r--r-- | 22.4 KB |
deadline.c | -rw-r--r-- | 72.2 KB |
debug.c | -rw-r--r-- | 24.6 KB |
fair.c | -rw-r--r-- | 258.5 KB |
features.h | -rw-r--r-- | 2.3 KB |
idle.c | -rw-r--r-- | 8.6 KB |
idle_task.c | -rw-r--r-- | 2.4 KB |
isolation.c | -rw-r--r-- | 4.0 KB |
loadavg.c | -rw-r--r-- | 11.4 KB |
membarrier.c | -rw-r--r-- | 5.2 KB |
rt.c | -rw-r--r-- | 62.3 KB |
sched-pelt.h | -rw-r--r-- | 601 bytes |
sched.h | -rw-r--r-- | 55.0 KB |
stats.c | -rw-r--r-- | 3.2 KB |
stats.h | -rw-r--r-- | 5.0 KB |
stop_task.c | -rw-r--r-- | 3.0 KB |
swait.c | -rw-r--r-- | 2.9 KB |
topology.c | -rw-r--r-- | 47.4 KB |
wait.c | -rw-r--r-- | 13.3 KB |
wait_bit.c | -rw-r--r-- | 8.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...