wl12xx: fix race between suspend/resume and recovery
authorEyal Shapira <eyal@wizery.com>
Tue, 13 Mar 2012 18:03:21 +0000 (20:03 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 10 Apr 2012 09:13:58 +0000 (12:13 +0300)
The iteration on the wlvif list in wl1271_op_resume/suspend was
perfomed before locking wl->mutex which would lead to a kernel
panic in case a recovery was queued at the same time
and would delete the wlvifs from the list.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>

No differences found