Re: [PATCH v2] soundwire: stream: fix bad unlock balance

From: Vinod Koul
Date: Thu Jun 06 2019 - 13:25:26 EST


On 06-06-19, 12:22, Srinivas Kandagatla wrote:
> multi bank switching code takes lock on condition but releases without
> any check resulting in below warning.
> This patch fixes this.
>
> =====================================
> WARNING: bad unlock balance detected!
> 5.1.0-16506-gc1c383a6f0a2-dirty #1523 Tainted: G W
> -------------------------------------
> aplay/2954 is trying to release lock (&bus->msg_lock) at:
> do_bank_switch+0x21c/0x480
> but there are no more locks to release!

Applied after changing the log suggested by Pierre, thanks
--
~Vinod