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:
jhb 2010-09-29 11:52:44 +00:00
parent db4f2cdbdf
commit d9c87b0853

View File

@ -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;
}