From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from acsinet15.oracle.com ([141.146.126.227]:39284 "EHLO acsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479Ab2FITH1 (ORCPT ); Sat, 9 Jun 2012 15:07:27 -0400 Date: Sat, 9 Jun 2012 22:07:02 +0300 From: Dan Carpenter To: Johannes Berg Cc: Wey-Yi Guy , Intel Linux Wireless , "John W. Linville" , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [patch] iwlwifi: turn on a lockdep assertion Message-ID: <20120609190702.GE13539@mwanda> (sfid-20120609_210734_234210_7FBFB78D) References: <20120609155718.GB6488@elgon.mountain> <1339265576.5029.1.camel@jlt3.sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1339265576.5029.1.camel@jlt3.sipsolutions.net> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sat, Jun 09, 2012 at 08:12:56PM +0200, Johannes Berg wrote: > On Sat, 2012-06-09 at 18:57 +0300, Dan Carpenter wrote: > > CMD_SYNC is zero so the if (cmd->flags & CMD_SYNC) is never true. I > > think it should be if (cmd->flags == CMD_SYNC). This enables a lockdep > > assertion. > > Good catch, thanks. It should really be if (!(cmd->flags & CMD_ASYNC)) > though I think as there could be other flags set which don't make it > non-sync. > > I'll commit a fix on Monday unless you want to send a separate patch > (which I'll then pick up on Monday :-) ) Sure. I'll resend it. regards, dan carpenter