From: Stanislaw Gruszka Date: Wed, 8 Jun 2011 13:26:31 +0000 (+0200) Subject: iwlegacy: fix channel switch locking X-Git-Tag: v3.0-rc3~13^2~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e65257142a87fe46a1ce5c35c86c5baf012614;p=pandora-kernel.git iwlegacy: fix channel switch locking We use priv->mutex to avoid race conditions between chswitch_done() and mac_channel_switch(), when marking channel switch in progress. But chswitch_done() can be called in atomic context from rx_csa() or with mutex already taken from commit_rxon(). To fix remove mutex from chswitch_done() and use atomic bitops for marking channel switch pending. Cc: stable@kernel.org # 2.6.39+ Signed-off-by: Stanislaw Gruszka Signed-off-by: John W. Linville --- Reading git-diff-tree failed