If rt2560_bbp_init() fails, don't drop the lock as the callers of
rt2560_init_locked() expect the lock to be held on return. Reported by: Anton Shterenlikht mexas of bristol ac uk MFC after: 1 week
This commit is contained in:
parent
db4f2cdbdf
commit
d9c87b0853
@ -2667,8 +2667,7 @@ rt2560_init_locked(struct rt2560_softc *sc)
|
||||
RAL_WRITE(sc, RT2560_CSR1, RT2560_HOST_READY);
|
||||
|
||||
if (rt2560_bbp_init(sc) != 0) {
|
||||
rt2560_stop(sc);
|
||||
RAL_UNLOCK(sc);
|
||||
rt2560_stop_locked(sc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user