From patchwork Sat May 8 16:25:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 97923 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 o48GPXBC011117 for ; Sat, 8 May 2010 16:25:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753959Ab0EHQZc (ORCPT ); Sat, 8 May 2010 12:25:32 -0400 Received: from mail-qy0-f183.google.com ([209.85.221.183]:37896 "EHLO mail-qy0-f183.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753702Ab0EHQZb (ORCPT ); Sat, 8 May 2010 12:25:31 -0400 Received: by qyk13 with SMTP id 13so3449002qyk.1 for ; Sat, 08 May 2010 09:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=A3142OUYDpOTUZYxzDxUHdhBo8WvaluW03Uuc+wnGWE=; b=gyTw1ttmRt88i4tTQuu82R00nEFBpKnEA7XvDvGhfUj8mys7xUnmtvh3ObxbJzjWx5 823hcapvbCNPEe7HUtnDz7j/OPn2VckfnJgcMNkqFeR9B3tecI2AI8a+kjsvdgmC8+a9 rggxwPdVaihlSERTo5OY4XlTsiqCLsaX5nzw0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=vZkv6dy0L2qI5npM+Uz6bzoQ5VhRvGRDHacnQzH0xI7/nEx3FsFCvGzmzi3VuVrT7s aJUIHuELMzjhJvE852lNCxko9JBUpCcUUbBNm42SeJoQiD5h7eGGBW7fDZW8s0Wzj9jv hxE/lL+0ujXIgDfP45w7LMqwyWKv/mbzoQOJs= Received: by 10.229.222.65 with SMTP id if1mr156258qcb.28.1273335930680; Sat, 08 May 2010 09:25:30 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id v37sm2073127qce.12.2010.05.08.09.25.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 May 2010 09:25:29 -0700 (PDT) Date: Sat, 8 May 2010 18:25:17 +0200 From: Dan Carpenter To: Luciano Coelho Cc: "John W. Linville" , Juuso Oikarinen , Teemu Paasikivi , Kalle Valo , linux-wireless@vger.kernel.org Subject: [patch 7/9] wl1271: add missing spin_lock() Message-ID: <20100508162517.GS27064@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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]); Sat, 08 May 2010 16:25:34 +0000 (UTC) diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 3e4b9fb..b61cd10 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c @@ -466,6 +466,7 @@ static void wl1271_irq_work(struct work_struct *work) intr = le32_to_cpu(wl->fw_status->intr); if (!intr) { wl1271_debug(DEBUG_IRQ, "Zero interrupt received."); + spin_lock_irqsave(&wl->wl_lock, flags); continue; }