From: Peter Zijlstra Date: Wed, 29 Oct 2014 15:17:12 +0000 (+0100) Subject: rfcomm, sched/wait: Fix broken wait construct X-Git-Tag: omap-for-v3.19/fixes-rc1~165^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eedf7e47daa0b8530246a8c9107c007fbf8231bf;p=pandora-kernel.git rfcomm, sched/wait: Fix broken wait construct rfcomm_run() is a tad broken in that is has a nested wait loop. One cannot rely on p->state for the outer wait because the inner wait will overwrite it. Fix this using the new wait_woken() facility. Signed-off-by: Peter Zijlstra (Intel) Cc: Peter Hurley Cc: Alexander Holler Cc: David S. Miller Cc: Gustavo Padovan Cc: Joe Perches Cc: Johan Hedberg Cc: Libor Pechacek Cc: Linus Torvalds Cc: Marcel Holtmann Cc: Seung-Woo Kim Cc: Vignesh Raman Cc: linux-bluetooth@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed