From patchwork Sun Feb 14 03:13:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Roskin X-Patchwork-Id: 79248 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1E3DVH2020234 for ; Sun, 14 Feb 2010 03:13:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758060Ab0BNDN0 (ORCPT ); Sat, 13 Feb 2010 22:13:26 -0500 Received: from c60.cesmail.net ([216.154.195.49]:52531 "EHLO c60.cesmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753436Ab0BNDNZ (ORCPT ); Sat, 13 Feb 2010 22:13:25 -0500 Received: from unknown (HELO smtprelay1.cesmail.net) ([192.168.1.111]) by c60.cesmail.net with ESMTP; 13 Feb 2010 22:13:24 -0500 Received: from [192.168.0.22] (unknown [72.92.88.10]) by smtprelay1.cesmail.net (Postfix) with ESMTPSA id 4EAB934C69; Sat, 13 Feb 2010 22:13:14 -0500 (EST) Subject: [PATCH] mwl8k: disable softirqs when accessing sta_notify_list From: Pavel Roskin To: Lennert Buytenhek , linux-wireless@vger.kernel.org, "John W. Linville" Date: Sat, 13 Feb 2010 22:13:06 -0500 Message-Id: <1266117186.13902.21.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 14 Feb 2010 03:13:33 +0000 (UTC) diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 0cfdb9d..6497c84 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -3784,9 +3784,9 @@ mwl8k_sta_notify(struct ieee80211_hw *hw, struct ieee80211_vif *vif, s->cmd = cmd; s->sta = *sta; - spin_lock(&priv->sta_notify_list_lock); + spin_lock_bh(&priv->sta_notify_list_lock); list_add_tail(&s->list, &priv->sta_notify_list); - spin_unlock(&priv->sta_notify_list_lock); + spin_unlock_bh(&priv->sta_notify_list_lock); ieee80211_queue_work(hw, &priv->sta_notify_worker); }